mirror of
https://github.com/iluvcapra/ptulsconv.git
synced 2025-12-31 08:50:48 +00:00
Directive parsing
This commit is contained in:
@@ -114,13 +114,13 @@ a list of words
|
|||||||
|
|
||||||
The following commands are available:
|
The following commands are available:
|
||||||
|
|
||||||
pagesize `(letter|legal|a4)`
|
page $SIZE=`(letter|legal|a4)`
|
||||||
Sets the PDF page size for the output.
|
Sets the PDF page size for the output.
|
||||||
|
|
||||||
font -n `name` -p `path`
|
font {NAME=`name`} {PATH=`path`}
|
||||||
Sets the primary font for the output.
|
Sets the primary font for the output.
|
||||||
|
|
||||||
sub [-t `tag`] -t `text_to_replace` `replacement text`
|
sub `replacement text` {FOR=`text_to_replace`} {IN=`tag`}
|
||||||
Declares a substitution. Whereever text_to_replace is encountered in the
|
Declares a substitution. Whereever text_to_replace is encountered in the
|
||||||
document it will be replaced with "replacement text".
|
document it will be replaced with "replacement text".
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ tag_grammar = Grammar(
|
|||||||
tag_junk = word word_sep?
|
tag_junk = word word_sep?
|
||||||
word = ~r"[^ \[\{\$][^ ]*"
|
word = ~r"[^ \[\{\$][^ ]*"
|
||||||
word_sep = ~r" +"
|
word_sep = ~r" +"
|
||||||
modifier = ("@" / "&") word_sep?
|
modifier = ("@" / "&" / "!") word_sep?
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user