Commit graph

136 commits

Author SHA1 Message Date
a1tsal
8ad97748bb Correction and clarification of interlineal text formatting section.
Miscellaneous small clarifications.
2005-07-31 17:20:08 +00:00
a1tsal
857f4a7c33 Add section about style preservation.
Add section about text format inheritance.

35,000 'x's moved to new file.

Add test of backquote curlification.

Miscellaneous small fixes.
2005-07-31 17:17:54 +00:00
a1tsal
8ea8415aed I'm not sure anything has actually changed, but CVS thinks so, so I'm committing. 2005-07-30 12:43:52 +00:00
a1tsal
0c99da02d9 Interlineal styles are no longer included in template; they are
always defined at run time (even when loading normally rather than
  from Startup).  This is partly to avoid duplication and change-sync
  problems, but mostly because it allows the "Interlineal Tibetan"
  font parameters to be set according to the user's TScript font
  preferences (e.g. TMW vs Unicode).

  Fix bug: The font size of the "Interlineal Tibetan" style was not
  respected.

  Fix bug: TCC->Unicode did not preserve paragraph styles as advertised.

  Fix bug: TCC->Uni left selection in random state.

  Fix bug: [ in TMU (but not TMW) didn't do .copyformat correctly.

  Fix bug: ] in TMU (but not TMW) didn't do .copyformat correctly.

  Fix bug: red error handler didn't work correctly in TMW in interlineal.

  Fix bug: in TMW, interlineal TScript row was not using proprietary
  style due to .copyformat hair.

  Fix bug: when loading from Startup, the programmatically-defined
  interlineal styles could come out in 22pt (when using TMW) because
  the size wasn't specified and could be inherited.  Force 11pt.
  (Would be nicer to take from the Normal style, but I vaguely
  remember that an earlier attempt to take the font name from Normal
  resulted in problems.)

  Decrease formatLookbackNCharacters for better performance on slower
  machines.
2005-07-30 12:42:42 +00:00
a1tsal
17c70c91e6 Tiny change 2005-07-29 11:37:23 +00:00
a1tsal
5642fc13a7 Explain baseline adjustment in section on TCC->Unicode.
Updated for removal of OScript options.

Documented new horizontal spacing option.
2005-07-28 12:19:53 +00:00
a1tsal
5beef8394a Fixes for various bugs introduced by recent changes.
Put calls to ReinitializeWylieWordIfNecessary into the interlineal
  key bindings (where they should have been all along).  This may fix
  some long-standing obscure interlineal bugs.  It certainly fixes
  one new problem (whereby interlinealHorizontalPadding was failing to
  get initialized).
2005-07-28 12:18:25 +00:00
a1tsal
649b93a800 Complete revision of font handling, implementing a superset of SF
RFE #1104925.  Now when you switch from TScript to OScript, or vice
  versa, the code looks backward through the document to find the last
  instance of the script type (T or O) and applies the formatting of
  that last instance to the new text.  If there was no previous
  OScript, the "Normal" style parameters are used.  This means that
  the WylieWord Options dialog no longer needs or has OScript font
  parameters.  It retains the TScript font parameters, but these are
  used as defaults only.

  Implement SF RFE #1104920: New option (in Options dialog) to control
  the horizontal whitespace in Interlineal mode.

  Add new "Interlineal Tibetan" style for first row of Interlineal
  matrices.  Previously, Normal was used, but that meant user didn't
  have control over vertical whitespace for first row.

  Added 3 points of vertical space above the interlineal styles built
  into the template.  This makes them consistent with the styles that
  are auto-defined by AddInterlinealStylesIfNecessary.

  Diked defaultOScriptFontName (introduced 3 July to fix 1149498).
  Replaced with literal "Times New Roman", which I think is clearer.
  Motivated by the fact that this no longer *is* the default OScript
  font (since that now comes from the Normal style).
2005-07-09 17:06:51 +00:00
a1tsal
d304ba0f4e Minor fixes. Committing to create a checkpoint before doing a new round
of radical surgery, viz. using .CopyFormat/.PasteFormat to control text
formatting, rather than the data in the Options dialog.
2005-07-09 12:59:59 +00:00
a1tsal
e503dc046a add test of tab character in EWTS. 2005-07-09 11:43:20 +00:00
a1tsal
71da4f7fcc TCC->Unicode conversion optimized to minimize number of
document-changing operations (finished work on SF RFE #1151501,
  modulo any bugs that may show up).

  In interlineal mode, <space> now removes spaces before and after the
  cursor before breaking up the cell.

  In interlineal mode, add work-around for the Word bug whereby if you
  insert a table in the line immediately after a table, it DWIMishly
  merges the two.  (Dealt with this by having alt+M insert a crlf to
  keep the tables seperate.)
2005-07-09 11:38:09 +00:00
a1tsal
f9009c4ed5 Incremental progress on massive reorg of EWTS->TScript in order (mainly) to
improve performance.  Code not in a great state but basically functional.
2005-07-07 17:13:58 +00:00
a1tsal
daa3ab4277 T+kha is not TMW 2005-07-07 17:10:15 +00:00
a1tsal
cc06b355c8 Added "rSha", which currently parses as Sanskrit (but should be rejected). 2005-07-05 11:30:09 +00:00
a1tsal
8c1108f8ff Small clarifications. 2005-07-05 11:29:34 +00:00
a1tsal
9a45996dbd Subdivide troubleshooting section.
Document doesn't work with Russian, etc. keyboard.

Miscellaneous clarifications & clean-ups.
2005-07-05 11:28:58 +00:00
a1tsal
2b63d266b4 Conversion of EWTS to Unicode now preserves styles.
Conversion of TMW to Unicode now preserves styles.

When changing the Tibetan font in the Options dialog, its size and
position are heuristicated.  This is fairly bogus, but will save
users who fail to RTFM much confusion.  (Someone has already
reported the "bug" that TMW->Unicode conversion puts TScript text
above the Latin baseline.)

In installation, add warning about Outlook email editing interaction.
2005-07-05 11:27:43 +00:00
a1tsal
e91b9e9960 Document that you shouldn't use a Tibetan IME with WW. 2005-07-03 21:52:55 +00:00
a1tsal
7fe343182f Small fixes 2005-07-03 21:52:16 +00:00
a1tsal
57fbe3d5ae Add section header for Tibetan Unicode 2005-07-03 21:51:02 +00:00
a1tsal
fadd6bdac0 Slight clarification of disinstallation from Startup.
Explained Outlook email interaction bug.

Added discussion of how to uninstall.

Added Bob Chilton's explanation of the convoluted procedure
needed to make Tibetan line-breaking work properly.  Included Cathy
Cantwell's caveat about re-application to existing documents.

Document that you shouldn't use a Tibetan IME with WW.
2005-07-03 21:49:55 +00:00
a1tsal
8af7da25a5 Added "Tibetan > Uninstall" menu item that points you to the manual.
Addressing SF bug #951553 (interference with Outlook email editing):
put in a warning dialog that should catch (but not fix) the problem

Fixed SF 1149498: defined a public const whose value is "Times New
Roman" and replaced all Times font literals with it.
2005-07-03 21:47:36 +00:00
a1tsal
1b66882494 added "dam", which I confused myself about. 2005-06-08 19:24:55 +00:00
a1tsal
344984d0cd Do all substantive tests in a "long" document to shake out Integer vs.
Long pointer bugs.
2005-06-08 19:22:20 +00:00
a1tsal
0ac59b48dc The unicode hex reference for small r underdot was given as 1E58.
In fact, it is 1E5B; fixed.  (Mysteriously, the WW code had the correct value.)
2005-06-08 19:19:50 +00:00
a1tsal
948b4f575b Made HandleUserApostrophe work around Word/VBA font bug. Before
this workaround, when using TMW as TScript font, ]'<bsp>['g blew
  out; the second ' came out in the wrong (TMW) font.

  Changed type of variable "start" from Integer to Long in
  InsertTibetanTshegBarAsUnicode.  (Problem reported by Than Garson.)
  Also fixed the analogous problem in InsertForeignTshegBarAsTScript.

  SF bug [1151313]: AddInterlinealStylesIfNecessary failed to set the
  font names.  This bug could be duplicated by loading from Startup
  and doing ]s<alt-m>s; the phonetics came out in TScript.

  Add call to AddInterlinealStylesIfNecessary in
  ConvertToInterlinealText to fix problem when running from Startup
  (only).  Problem reported by Cathy Cantwell.

  oM was transcribed "ong" because I made M->ng for huM.  But that was
  totally bogus.  This change means that huM comes out hum, which is
  right for THDL (probably, although that is not well-defined) but
  wrong for Aro.  It's not possible to special-case huM for Aro
  without adding another flag, and since the implementation of Aro
  pronunciation is generally inaccurate, I'm going to punt for now.
2005-06-08 19:15:09 +00:00
a1tsal
a943bb342c Version 2.1b2:
Worked around newly-discovered Word bug that causes the selection
  change event handler to get called spuriously.  This caused bad
  behavior in alt+m.  Probably this bug has been around forever but
  either no one noticed it or it was masked by something else.

  Make HandleUserUCH call UpdateFromTransliteration, as needed.

  Add code in InsertInterlinealMatrix to force OScript input in the
  Wylie row.
2005-02-25 00:59:10 +00:00
a1tsal
9db7c5897d Change nr to be pronounced n, rather than nr. See SF bug 1150671. 2005-02-24 05:54:26 +00:00
a1tsal
cbc9de5bfb Fixed SF bug 793596: mangs came out mngas. Also fixed the case of mags.
Fixed 1118035 some more.  Yesterday I fixed it for Unicode; I had
  assumed this worked correctly for TMW, but it didn't, due to some
  buggy version 1.1 legacy code.  (So in fact this bug was in version
  2.0 as well, but no one complained.)
2005-02-24 01:42:41 +00:00
a1tsal
5407b80a04 Whoops -- remove tabs, replace with spaces. 2005-02-24 00:47:57 +00:00
a1tsal
29621f5716 Correct the list of three-letter-root-rule exceptions (nangs->mangs).
Add tests for Chris Fynn's list of difficult non-exceptions.
These motivated by fix to SF bug #793596.
2005-02-24 00:42:27 +00:00
a1tsal
4bebad8082 Actually fix 1119028 (Enter and Tab when in TScript put you in OScript) 2005-02-23 07:59:17 +00:00
a1tsal
6d2b5f72df Fixed SF bug 1118035: newline and other whitespace got []ed in F10.
Fixed SF bug 1118391: Now starts in OScript mode, not TScript.

  Fixed SF bug 1119024: TCC->Unicode lost newlines and other whitespace.

  Fixed SF bug 1149395: allow s+n+r as Tibetan stack.

Working on fix for 1119028 by modifying SelectionIsTScript, which is probably
in an inconsistent state currently.
2005-02-23 05:41:26 +00:00
a1tsal
6894b3ca41 Add snrubs as test for s+n+r 2005-02-23 01:29:43 +00:00
a1tsal
deaf6cb06d Take native-stack test cases from the right source! (I.e. the spec.) 2005-02-23 01:22:52 +00:00
a1tsal
c7d42b44b0 Add systematic test cases for all native-Tibetan stacks.
Obviously I should have done this long ago, because WW rejected
snr-, which is definitely legal.

Add explanatory comment re: baraga.
2005-02-22 23:27:25 +00:00
a1tsal
fddf3c4870 Fix bug in PrepareDistribution: It could set the font to TMU rather than TMW. 2005-02-04 02:58:59 +00:00
a1tsal
55530429bc Remove reference to removed // canonicalization (mis)feature. 2005-02-04 02:53:47 +00:00
a1tsal
90e4234382 Add alt-key accelerators for Tibetan menu commands that don't have
dedicated keys.

  Comment out 0F0D canonicalization (mis)feature.
2005-02-04 02:52:21 +00:00
a1tsal
19934770f4 minor clarifications 2005-01-19 12:08:05 +00:00
a1tsal
bb3910a2e0 remove redundant heM, add note re nested [] test 2005-01-19 12:06:44 +00:00
a1tsal
3f223bcb8c Added test for _
Added test for no-Wylie Tibetan symbol followed by alpha character.

     Added test of TM->Unicode

     Various small clarifications & improvements
2005-01-19 12:03:44 +00:00
a1tsal
766cb24dc9 This is probably the final 2.1b1.
Implement the (apparent) Unicode // misfeature: Whenever two U+0F0D
  appear next to each other, by whatever means, they need to be
  combined into a single U+0F0E.

  Made MakeRangeTScript set .Font.NameBi, which seems to be necessary
  on alternate Tuesdays.

  Fix long-standing bug (was in 2.0, but I only just noticed it):
  single-quote should be open-curly after newline and tab, as well as
  after space.  Probably after some other things as well, like magic
  formatting codes, but it's too hard to figure out what.

  Fix bug introduced by the optimization of font changes: TCC->Unicode
  was failing to set the Unicode font, so everything came out Arial
  Uni.

  Fixed bug recently introduced in ProcessTibwn_iniLine that caused
  Tibetan stacks not to work.

  Fixed bug: when typing an OScript character, bombed if the
  selection was not collapsed.

  Fixed bug: _ was inserting 0020 rather than 00A0

  Fixed bug that looks like it goes back at least to 2.0, that
  inserting an alpha character in tscript after a symbol that has no
  wylie (other than \uXXXX) bombs because the symbol is wrong counted
  as CharOKinTshegBar.  If it does go back to 2.0 I'm somewhat
  surprised no one has noticed it; but probably these symbols are very
  rarely used.
2005-01-19 12:01:04 +00:00
a1tsal
de8636256a Added test case for [] nesting. 2005-01-19 01:14:31 +00:00
a1tsal
3c97ef33e6 Added tip about the Word Unicode bug(s).
Moved text into "basic operation" that had somehow gotten stranded
    in "EWTS".

    Document new TCC-font-conversion feature.

    Explain of USP10.DLL and hyperlink to discussion on thdl.org.

    Hyperlink to EWTS documentation.

    Hyperlink to THDL simplified phonetics document on thdl.org.

    Added note about pecha preparation.

    Changed TOC to a more-nearly-standard form, with page numbers,
    ergo suitable for print as well as on-line reading.

    Replace some literal URLs with hyperlinks.

    Remove the following text: "WylieWord does not support the EWTS
    -i+thi transliteration.  (You can get this rare glyph using a
    Unicode escape, however.)"  Apparently this transliteration has
    been removed from EWTS (thankfully); it's now only \uF042.
2005-01-19 01:13:26 +00:00
a1tsal
343a83bc10 Not sure what the change here is, but CVS thinks it's changed,
so I'm checking it in.
2005-01-19 01:12:14 +00:00
a1tsal
5034292ed6 Made 0F00, 0F02 and 0F03 be "symbols" rather than "combinations".
They should not be decomposed on transliteration.

    Made 0F0E (//) a "symbol" rather than "combination".

    Made the Sanskrit aspirates and k+Sh into foreign consonants,
    rather than "combination"s.  This doesn't actually affect the
    current code, but better reflects what it is doing (after the
    change to canonicalize these as single "precomposed" characters).

    Made the "strongly disrecommended" vowel signs "deprecated" rather
    than "combination".
2005-01-19 01:05:49 +00:00
a1tsal
4aa9128173 New feature for converting the 8-bit TCC fonts to Unicode.
Code-cleaned ReadTMWdefinitionFile which was an awful mess.  Did
  this along the way when implementing TCC 8-bit support.

  Unicode<->TMW conversion of whole document now applies to footnotes
  and endnotes.

  Now (per spec) use 00A0 space rather than 0020 (= ASCII 32) for EWTS _ .

  Implemented [] nesting rule for F9.  It already worked for F10,
  fortuitously.

  Optimize out most calls to MakeRange*Script (recently introduced to
  work around Word Unicode font-change bug); this improves performance
  and also decreases the number of useless font-change events on the
  Undo list.

  "combination" -> "deprecated" in Unicode definition reader.
2005-01-19 00:54:19 +00:00
a1tsal
67414c1e8c Checking in first version of testing protocol document 2005-01-16 01:00:51 +00:00
a1tsal
c80184b95f Minor changes 2005-01-16 00:59:31 +00:00