… | |
… | |
362 | if (*cfpod == ' ') |
362 | if (*cfpod == ' ') |
363 | goto verbatim; |
363 | goto verbatim; |
364 | |
364 | |
365 | break; |
365 | break; |
366 | |
366 | |
367 | case 'B': case 'C': case 'E': case 'G': |
367 | case 'B': case 'C': case 'E': case 'G': case 'H': |
368 | case 'H': case 'I': case 'T': case 'U': |
368 | case 'I': case 'L': case 'T': case 'U': case 'Z': |
369 | case 'Z': |
|
|
370 | { |
369 | { |
371 | int end = 0; |
370 | int end = 0; |
372 | |
371 | |
373 | while (cfpod [end] == '<') |
372 | while (cfpod [end] == '<') |
374 | ++end; |
373 | ++end; |
… | |
… | |
394 | case 'I': pfx = "<i>" ; sfx = "</i>" ; break; |
393 | case 'I': pfx = "<i>" ; sfx = "</i>" ; break; |
395 | case 'U': pfx = "<u>" ; sfx = "</u>" ; break; |
394 | case 'U': pfx = "<u>" ; sfx = "</u>" ; break; |
396 | case 'T': pfx = "<big><b>"; sfx = "</b></big>"; break; |
395 | case 'T': pfx = "<big><b>"; sfx = "</b></big>"; break; |
397 | case 'Z': pfx = "" ; sfx = "" ; break; |
396 | case 'Z': pfx = "" ; sfx = "" ; break; |
398 | |
397 | |
|
|
398 | case 'L': // link, not really supported - always use first (or only) component |
|
|
399 | { |
|
|
400 | cfpod = expand_cfpod (hintmode, gender, nest, cfpod, end); |
|
|
401 | nest << '\0'; // zero-terminate |
|
|
402 | |
|
|
403 | const char *str = nest.linearise (); |
|
|
404 | const char *sep = strchr (str, '|'); |
|
|
405 | |
|
|
406 | buf.add (str, sep ? sep - str : nest.size ()); |
|
|
407 | |
|
|
408 | nest.clear (); |
|
|
409 | |
|
|
410 | goto skip; |
|
|
411 | } |
|
|
412 | |
399 | case 'H': // hint |
413 | case 'H': // hint |
400 | { |
414 | { |
401 | if (hintmode) |
415 | if (hintmode) |
402 | { |
416 | { |
403 | cfpod = expand_cfpod (hintmode, gender, nest, cfpod, end); |
417 | cfpod = expand_cfpod (hintmode, gender, nest, cfpod, end); |