Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
custom:text.dat [2016/10/26 01:02] – [Suppressing Questions] digital man | custom:text.dat [2018/03/01 12:10] – Links to util:binkit changed to module:binkit digital man |
---|
See Also: [[wp>Escape_sequences_in_C]] | See Also: [[wp>Escape_sequences_in_C]] |
| |
To continue a text string onto the next line of the ''text.dat'' file (e.g. to creating long text strings without using long lines), place a backslash ('\') character immediately after the terminating double-quote character of each line, except for the last. | To continue a text string onto the next line of the ''text.dat'' file (e.g. to create long text strings, up to 2000 characters, from multiple shorter lines): place a backslash ('\') character immediately after the terminating double-quote character of each line, except for the last. |
| |
The order of the % specifiers (if they exist) in a ''text.dat'' line cannot be | The order of the % specifiers (if they exist) in a ''text.dat'' line cannot be |
There are multiple ways to customize the contents of the ''text.dat'' file: | There are multiple ways to customize the contents of the ''text.dat'' file: |
- Edit the ''text.dat'' file directly (e.g. using a text editor, but do this with care, see above) | - Edit the ''text.dat'' file directly (e.g. using a text editor, but do this with care, see above) |
- Use the [[util:Baja]] ''REPLACE_TEXT'' or [[custom:JavaScript]] ''bbs.replace_text'' function to replace a single line, programmatically (e.g. in a login/logon script or command-shell) | - Use the [[module:binkit]] ''REPLACE_TEXT'' or [[custom:JavaScript]] ''bbs.replace_text'' function to replace a single line, programmatically (e.g. in a login/logon script or command-shell) |
- Use the [[util:Baja]] ''LOAD_TEXT'' or [[custom:JavaScript]] ''bbs.load_text'' function to load an alternative ''text.dat'' file (e.g. in a login/logon script or command-shell) | - Use the [[module:binkit]] ''LOAD_TEXT'' or [[custom:JavaScript]] ''bbs.load_text'' function to load an alternative ''text.dat'' file (e.g. in a login/logon script or command-shell) |
| - The [[module:binkit]] ''REVERT_TEXT'' or [[custom:JavaScript]] ''bbs.revert_text'' function may be used to revert to the original set of text strings loaded from the ''text.dat'' file upon initialization |
| |
| The current ''text.dat'' strings may be obtained (e.g. for display purposes) using the [[custom:JavaScript]] ''bbs.text'' function. The caller must pass the number of the text string they wish to obtain. |
| |
| All of the ''text.dat'' names and numbers can be found in: |
| - The [[custom:JavaScript]] load file: ''[[dir:exec]]/load/[[http://cvs.synchro.net/cgi-bin/viewcvs.cgi/text.js|text.js]]'' |
| - The C header file: ''[[http://cvs.synchro.net/cgi-bin/viewcvs.cgi/src/sbbs3/text.h]]'' |
| |
**Note**: The default (US-English) values of all ''text.dat'' strings are hard-coded into Synchronet (e.g. ''sbbs.dll'' or ''libsbbs.so'') so if any lines are missing from your ''text.dat'' file or the file itself is missing, the default values will be automatically used. | **Note**: The default (US-English) values of all ''text.dat'' strings are hard-coded into Synchronet (e.g. ''sbbs.dll'' or ''libsbbs.so'') so if any lines are missing from your ''text.dat'' file or the file itself is missing, the default values will be automatically used. |