If you want curly brackets around folio markers, you'll have to set
the system property thdl.acip.to.x.output.curly.brackets.around.folio.markers to true.
This commit is contained in:
parent
8664571577
commit
e9f7b2dfed
1 changed files with 7 additions and 2 deletions
|
@ -316,6 +316,9 @@ public class ACIPConverter {
|
||||||
TStackList lastGuy = null;
|
TStackList lastGuy = null;
|
||||||
Color lastColor = Color.BLACK;
|
Color lastColor = Color.BLACK;
|
||||||
Color color = Color.BLACK;
|
Color color = Color.BLACK;
|
||||||
|
boolean outputCurlyBracketsAroundFolioMarkers
|
||||||
|
= ThdlOptions.getBooleanOption("thdl.acip.to.x.output.curly.brackets.around.folio.markers");
|
||||||
|
|
||||||
for (int i = 0; i < sz; i++) {
|
for (int i = 0; i < sz; i++) {
|
||||||
TString s = (TString)scan.get(i);
|
TString s = (TString)scan.get(i);
|
||||||
int stype = s.getType();
|
int stype = s.getType();
|
||||||
|
@ -378,9 +381,11 @@ public class ACIPConverter {
|
||||||
lastGuyWasNonPunct = false;
|
lastGuyWasNonPunct = false;
|
||||||
lastGuy = null;
|
lastGuy = null;
|
||||||
String text
|
String text
|
||||||
= (((stype == TString.FOLIO_MARKER) ? "{" : "")
|
= (((outputCurlyBracketsAroundFolioMarkers
|
||||||
|
&& stype == TString.FOLIO_MARKER) ? "{" : "")
|
||||||
+ s.getText()
|
+ s.getText()
|
||||||
+ ((stype == TString.FOLIO_MARKER) ? "}" : ""));
|
+ ((outputCurlyBracketsAroundFolioMarkers
|
||||||
|
&& stype == TString.FOLIO_MARKER) ? "}" : ""));
|
||||||
if (null != writer) writer.write(text);
|
if (null != writer) writer.write(text);
|
||||||
if (null != tdoc) {
|
if (null != tdoc) {
|
||||||
tdoc.appendRoman(tdocLocation[0], text, Color.BLACK);
|
tdoc.appendRoman(tdocLocation[0], text, Color.BLACK);
|
||||||
|
|
Loading…
Reference in a new issue