1
0
mirror of https://git.zap.org.au/git/trader.git synced 2024-07-21 16:14:14 -04:00
Commit Graph

874 Commits

Author SHA1 Message Date
John Zaitseff
8a7dfcaf99 Handle multibyte characters correctly in mkchstr()
Internal processing is now done in terms of wide characters (type
wchar_t).
2011-08-19 16:52:27 +10:00
John Zaitseff
74031a0415 Add yet another module from the GNU Portability Library: btowc 2011-08-19 14:26:30 +10:00
John Zaitseff
03e33a6465 Update the list of (auto-generated) files to ignore 2011-08-19 13:31:07 +10:00
John Zaitseff
75b5c986c0 Add the module wcwidth from the GNU Portability Library 2011-08-19 13:22:16 +10:00
John Zaitseff
87f09a6fda Add the Gnulib modules mbrtowc, mbsrtowcs, wcrtomb and wcsrtombs 2011-08-19 13:11:43 +10:00
John Zaitseff
3a6f33d2a1 Update some minor comments about character encodings 2011-08-18 15:05:55 +10:00
John Zaitseff
4d6f1478e6 Remove the superfluous argument to chstrdup()
This argument is not required: we KNOW that we have initialised chtype
arrays with an ending NUL!
2011-08-18 14:53:03 +10:00
John Zaitseff
bee30b7343 Ignore additional files in the po subdirectory
Yes, trader.pot should be ignored: it is autogenerated from the source
code.
2011-08-18 12:56:21 +10:00
John Zaitseff
ef3e06ed36 Add the wchar and wctype-h modules from the GNU Portability Library 2011-08-18 12:53:23 +10:00
John Zaitseff
6ef7c7b6da Allow localisation of company letters and map moves (choices) 2011-08-18 12:10:33 +10:00
John Zaitseff
a024ad83e7 Update help text company letter; clarify tilde escapes in general 2011-08-18 09:10:38 +10:00
John Zaitseff
e87c6ce9b3 Allow input keycodes in ask_number_players() to be localised 2011-08-17 22:27:51 +10:00
John Zaitseff
75503ab103 Parameterise answer_yesno() so that the input keycodes can be localised 2011-08-17 22:07:31 +10:00
John Zaitseff
1c4cac2ba1 Add a detailed explanation of the help text markup format 2011-08-17 21:41:38 +10:00
John Zaitseff
c2a3c5ac8f Require Gettext 0.18.1; regularise usage of Ncurses; update version 2011-08-17 19:48:39 +10:00
John Zaitseff
b674c05d56 Add many comments for translators; use pgettext() where appropriate 2011-08-17 19:13:05 +10:00
John Zaitseff
25d586f775 Add some translator comments regarding company names and ordinals 2011-08-17 13:26:55 +10:00
John Zaitseff
5f5c512e45 Highlight the word "one" 2011-08-17 13:26:11 +10:00
John Zaitseff
5f069b983d Inform xgettext(1) that files are in UTF-8 format and may be wide 2011-08-17 13:19:57 +10:00
John Zaitseff
197de2804f Add calls to ngettext() where appropriate 2011-08-17 13:18:41 +10:00
John Zaitseff
9b11599354 Add some translator comments with the correct pronunciation of my name 2011-08-17 12:21:18 +10:00
John Zaitseff
d953154e5d Mark up strings with xgettext:c-format comments where appropriate 2011-08-17 10:04:57 +10:00
John Zaitseff
4fecbe6e9d Ignore TAGS files 2011-08-17 09:40:36 +10:00
John Zaitseff
0aa74d1f46 Add a space to the "Player %d: " string for consistency 2011-08-16 21:14:56 +10:00
John Zaitseff
6c1c272780 Place all output strings within gettext invocations 2011-08-16 21:03:41 +10:00
John Zaitseff
bf76fa312c Assume MOD_POSIX_CURRENCY_SYMBOL contains only ASCII characters
The GNU library now has "C.UTF-8" as a locale (which is NOT a single-byte
locale!), but we assume the currency symbol in MOD_POSIX_CURRENCY_SYMBOL
contains only ASCII characters.
2011-08-16 20:55:42 +10:00
John Zaitseff
d20cc2b5ec Use chstr-style output functions in gettxline() 2011-08-16 20:45:47 +10:00
John Zaitseff
de6a4e3e66 Remove obsolete old_attrpr, old_center, old_center2 and old_center3 2011-08-16 18:51:56 +10:00
John Zaitseff
cf30933614 Continue to rewrite the interface code to use the new interfaces 2011-08-16 18:48:56 +10:00
John Zaitseff
135842b87d Bug fix for non-colour mode
If the background has A_REVERSE, then A_NORMAL will have no effect.  For
that reason, specify A_NORMAL as the default background after creating a
new window.
2011-08-16 16:25:28 +10:00
John Zaitseff
82647cf691 Move to the new left/center/right functions; add maxlines parameter 2011-08-15 23:54:44 +10:00
John Zaitseff
22677c0d89 Handle floating-point numbers in mkchstr(), with optional precision 2011-08-15 23:12:10 +10:00
John Zaitseff
665605d144 Add convenience functions left(), center() and right() 2011-08-15 21:04:07 +10:00
John Zaitseff
a6c362d2e8 Rename pr_left, pr_center and pr_right to leftch, centerch and rightch 2011-08-15 19:46:26 +10:00
John Zaitseff
907a995b98 Refactor function names; "old_" functions will be removed
Rename prepstr, vprepstr, chbufdup, center, center2, center3 and attrpr
to mkchstr, vmkchstr, chstrdup, old_center, old_center2, old_center3 and
old_attrpr respectively.
2011-08-15 19:12:26 +10:00
John Zaitseff
0c319738a8 Continue to move code to prepstr() and friends 2011-08-15 17:07:00 +10:00
John Zaitseff
3ad62688da Do parse of format string in prepstr_parse(); add the "%c" specifier 2011-08-15 15:53:56 +10:00
John Zaitseff
746155078b Continue to move text output to the new interfaces 2011-08-15 10:08:44 +10:00
John Zaitseff
5bb48fe35f Add wrapper functions xmalloc() and xstrdup() to do error handling 2011-08-13 08:50:34 +10:00
John Zaitseff
c50b8a4649 Move error handling into vprepstr(), to save doing it over and over 2011-08-13 08:17:30 +10:00
John Zaitseff
06b66716cf Add the function chbufdup() to duplicate a chtype array 2011-08-13 07:59:20 +10:00
John Zaitseff
7d9bf097b9 Replace discrete calls to newtxwin() etc. with calls to txdlgbox() 2011-08-12 18:24:35 +10:00
John Zaitseff
184c07d19d Add a comment about multibyte character handling in prepstr() 2011-08-12 16:35:13 +10:00
John Zaitseff
15f06bdc79 Move some functions from center() to pr_center() 2011-08-12 16:32:32 +10:00
John Zaitseff
b27af38537 Minimise flickering when resizing the console window 2011-08-12 16:09:38 +10:00
John Zaitseff
6594ff3daa Add the function txdlgbox() to display a dialog box 2011-08-12 16:02:01 +10:00
John Zaitseff
4e7699f192 Add vprepstr() with a va_list argument: for the future txdlgbox() 2011-08-12 15:10:05 +10:00
John Zaitseff
2612eddf3d Add functions prepstr(), pr_left(), pr_center() and pr_right()
These functions allow multiple lines to be printed left-aligned, centered
or right-aligned, with automatic line-wrapping where needed.
2011-08-12 14:28:15 +10:00
John Zaitseff
3984468894 Handle KEY_RESIZE events (where defined) in a simple manner
Unfortunately, the implementation of Curses (even Ncurses) requires that
to truely handle resizing, one must destroy and recreate every window
(and, of course, repaint it)--a lot of work that is not done at this
time.
2011-08-10 01:27:11 +10:00
John Zaitseff
738ffcd69a Block SIGINT, SIGTERM and SIGQUIT when in the signal handler 2011-08-10 00:30:38 +10:00