-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add custom server patch version of YaLafi
Copied from [0] but reapplied to the newer version of YaLafi. [0]: torik42/YaLafi#222 Signed-off-by: Kenny Ballou <[email protected]>
- Loading branch information
1 parent
3b2c046
commit 69b39e0
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- /yalafi/shell/shell.py | ||
+++ /yalafi/shell/shell.py | ||
@@ -152,7 +152,7 @@ parser.add_argument('--enablecategories', | ||
parser.add_argument('--lt-options', default='') | ||
parser.add_argument('--single-letters') | ||
parser.add_argument('--equation-punctuation') | ||
-parser.add_argument('--server', choices=['my', 'lt', 'stop'], default='') | ||
+parser.add_argument('--server', default='') | ||
parser.add_argument('--lt-server-options', default='') | ||
parser.add_argument('--textgears') | ||
parser.add_argument('--multi-language', action='store_true') | ||
@@ -246,6 +246,9 @@ if cmdline.server == 'stop': | ||
+ ltserver_local_cmd + '"\n') | ||
sys.exit() | ||
tex2txt.fatal('could not kill LT server "' + ltserver_local_cmd + '"') | ||
+elif cmdline.server not in ['lt', 'my', 'stop']: | ||
+ ltserver = cmdline.server | ||
+ cmdline.server = 'lt' | ||
|
||
|
||
# option --add-modules: read declarations from root document |