fasttran-checkins Mailing List for fasttran
Status: Alpha
Brought to you by:
a1s
You can subscribe to this list here.
2007 |
Jan
|
Feb
(28) |
Mar
|
Apr
(5) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2009 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: alexander s. <a1...@us...> - 2009-03-11 09:06:14
|
Update of /cvsroot/fasttran/htdocs In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv4210 Removed Files: python-powered-w-125x40.png Log Message: replaced with python-powered-w-120x40.png --- python-powered-w-125x40.png DELETED --- |
From: alexander s. <a1...@us...> - 2009-03-11 09:05:34
|
Update of /cvsroot/fasttran/htdocs In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv4075 Modified Files: header.shtml Log Message: update for new sf.net logo Index: header.shtml =================================================================== RCS file: /cvsroot/fasttran/htdocs/header.shtml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** header.shtml 14 Feb 2007 08:17:02 -0000 1.1 --- header.shtml 11 Mar 2009 09:05:17 -0000 1.2 *************** *** 19,29 **** </div> <div class="logos"> ! <a href="http://www.python.org/"><img src="python-powered-w-125x40.png" ! width="125" height="40" alt="[Python Powered]" /></a> <br /> ! <a href="http://sourceforge.net"><img ! src="http://sflogo.sourceforge.net/sflogo.php?group_id=189200&type=2" ! width="125" height="37" alt="SourceForge.net Logo" /></a> </div> --- 19,30 ---- </div> <div class="logos"> ! <a href="http://www.python.org/"><img src="python-powered-w-120x40.png" ! width="120" height="40" alt="[Python Powered]" /></a> <br /> ! <a href="http://sourceforge.net/projects/fasttran"><img ! src="http://sflogo.sourceforge.net/sflogo.php?group_id=189200&type=12" ! width="120" height="30" border="0" ! alt="Get fasttran at SourceForge.net. Fast, secure and Free Open Source software downloads" /></a> </div> |
From: alexander s. <a1...@us...> - 2009-03-11 09:04:59
|
Update of /cvsroot/fasttran/htdocs In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv3930 Added Files: python-powered-w-120x40.png Log Message: "Python Powered" logo padded with transparency to match the width of sf.net logo --- NEW FILE: python-powered-w-120x40.png --- (This appears to be a binary file; contents omitted.) |
From: alexander s. <a1...@us...> - 2007-04-12 10:15:55
|
Update of /cvsroot/fasttran/fasttran In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv1390 Modified Files: CHANGES Log Message: release version 0.1.2 Index: CHANGES =================================================================== RCS file: /cvsroot/fasttran/fasttran/CHANGES,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CHANGES 28 Feb 2007 10:22:58 -0000 1.2 --- CHANGES 12 Apr 2007 10:15:55 -0000 1.3 *************** *** 2,5 **** --- 2,13 ---- ======================== + version 0.1.2 (12-apr-2007) + --------------------------- + + Fixes: + + - Translations in table cells were always painted grey. + - Improved segmentation for table cell contents. + version 0.1.1 (28-feb-2007) --------------------------- |
From: alexander s. <a1...@us...> - 2007-04-12 10:14:48
|
Update of /cvsroot/fasttran/fasttran/fasttran In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv919 Modified Files: version.py Log Message: release version 0.1.2 Index: version.py =================================================================== RCS file: /cvsroot/fasttran/fasttran/fasttran/version.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** version.py 28 Feb 2007 10:23:41 -0000 1.3 --- version.py 12 Apr 2007 10:14:47 -0000 1.4 *************** *** 7,12 **** # wouldn't datetime.date object be better? ! __version__ = "0.1.1" ! __date__ = "2007-02-28" __all__ = ["__version__", "__date__"] --- 7,12 ---- # wouldn't datetime.date object be better? ! __version__ = "0.1.2" ! __date__ = "2007-04-12" __all__ = ["__version__", "__date__"] |
From: alexander s. <a1...@us...> - 2007-04-12 10:08:57
|
Update of /cvsroot/fasttran/fasttran/fasttran In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv31003 Modified Files: gui.py Log Message: ignore text segments containing no printable characters Index: gui.py =================================================================== RCS file: /cvsroot/fasttran/fasttran/fasttran/gui.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** gui.py 28 Feb 2007 10:17:17 -0000 1.3 --- gui.py 12 Apr 2007 10:08:57 -0000 1.4 *************** *** 1,4 **** --- 1,5 ---- """fasttran Graphic User Interface""" """History (most recent first): + 12-apr-2007 [als] ignore text segments containing no printable characters 28-feb-2007 [als] change LanguageID in translated document; typo in .Translate: invalid highlight for scores < 40 *************** *** 29,32 **** --- 30,38 ---- faceName="Verdana") + # Non-printable characters. + # Text segments consisting entirely of these characters + # will be ignored in TM training and text translation. + BLANKS = "".join(chr(_ii) for _ii in xrange(33)) # \x00 to space + class ExitButton(wx.Button): *************** *** 298,302 **** _range = _paragraphs(_ii).Range for _phrase in _seg.get_segments(_range.Text): ! if not _phrase.strip(): # the segment is empty - skip _range.Start += len(_phrase) --- 304,308 ---- _range = _paragraphs(_ii).Range for _phrase in _seg.get_segments(_range.Text): ! if not _phrase.strip(BLANKS): # the segment is empty - skip _range.Start += len(_phrase) *************** *** 483,489 **** _rv = [] for _ii in xrange(1, _paragraphs.Count + 1): ! _text = _paragraphs.Item(_ii).Range.Text.strip() if _text: ! _rv.append(filter(None, [_phrase.strip() for _phrase in _seg.get_segments(_text)])) self.gauge.SetValue(_ii * _gauge_step + _gauge_start) --- 489,495 ---- _rv = [] for _ii in xrange(1, _paragraphs.Count + 1): ! _text = _paragraphs.Item(_ii).Range.Text.strip(BLANKS) if _text: ! _rv.append(filter(None, [_phrase.strip(BLANKS) for _phrase in _seg.get_segments(_text)])) self.gauge.SetValue(_ii * _gauge_step + _gauge_start) |
From: alexander s. <a1...@us...> - 2007-04-12 10:07:54
|
Update of /cvsroot/fasttran/fasttran/fasttran In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv30608 Modified Files: tm.py Log Message: MS Word table cell delimiter added to word separators and to the head/tail separating regexp Index: tm.py =================================================================== RCS file: /cvsroot/fasttran/fasttran/fasttran/tm.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** tm.py 28 Feb 2007 09:53:40 -0000 1.3 --- tm.py 12 Apr 2007 10:07:51 -0000 1.4 *************** *** 26,29 **** --- 26,31 ---- """ """History (most recent first): + 12-apr-2007 [als] MS Word table cell delimiter added to word separators + and to the head/tail separating regexp 28-feb-2007 [als] .store: ignore the pair if source and target are the same 20-feb-2007 [als] use pickle protocol version 2; *************** *** 46,51 **** # NOTE: could be "\W", but i'm not sure if that can be trusted. # Anyway, \W would split by digits and this regexp does not ! # (dunno if that's good or bad). ! WORD_SEPARATOR = re.escape(" \t\r\n\\~`!@#$%^&*()-_=+|[]{};:'\"<>,./?") class TranslationMemory(object): --- 48,54 ---- # NOTE: could be "\W", but i'm not sure if that can be trusted. # Anyway, \W would split by digits and this regexp does not ! # (dunno if that's good or bad). <als> ! # NOTE: \x07 is terminates table cell text in MS Word. <als> ! WORD_SEPARATOR = re.escape(" \x07\t\r\n\\~`!@#$%^&*()-_=+|[]{};:'\"<>,./?") class TranslationMemory(object): *************** *** 255,260 **** re_wchar = re.compile("[^" + WORD_SEPARATOR + "]", re.UNICODE) re_spaces = re.compile(" {2,}") ! re_headtail = re.compile("(?P<head>\s*)(?P<body>.*?)(?P<tail>\s*)$", ! re.UNICODE) # defaults --- 258,263 ---- re_wchar = re.compile("[^" + WORD_SEPARATOR + "]", re.UNICODE) re_spaces = re.compile(" {2,}") ! re_headtail = re.compile( ! r"(?P<head>[\s\x07]*)(?P<body>.*?)(?P<tail>[\s\x07]*)$", re.UNICODE) # defaults |
From: alexander s. <a1...@us...> - 2007-04-12 09:33:27
|
Update of /cvsroot/fasttran/fasttran/fasttran In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv16135 Modified Files: default.srx Log Message: break before the end-of-cell character Index: default.srx =================================================================== RCS file: /cvsroot/fasttran/fasttran/fasttran/default.srx,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** default.srx 13 Feb 2007 05:51:56 -0000 1.1 --- default.srx 12 Apr 2007 09:33:20 -0000 1.2 *************** *** 29,32 **** --- 29,37 ---- <afterbreak>\n</afterbreak> </rule> + <rule break="yes"> + <!-- \x07 terminates table cell text in MS Word --> + <beforebreak></beforebreak> + <afterbreak>\x07</afterbreak> + </rule> </languagerule> </languagerules> |
From: alexander s. <a1...@us...> - 2007-02-28 10:23:48
|
Update of /cvsroot/fasttran/fasttran/fasttran In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv17617 Modified Files: version.py Log Message: release version 0.1.1 Index: version.py =================================================================== RCS file: /cvsroot/fasttran/fasttran/fasttran/version.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** version.py 25 Feb 2007 05:09:43 -0000 1.2 --- version.py 28 Feb 2007 10:23:41 -0000 1.3 *************** *** 7,12 **** # wouldn't datetime.date object be better? ! __version__ = "0.1.0" ! __date__ = "2007-02-25" __all__ = ["__version__", "__date__"] --- 7,12 ---- # wouldn't datetime.date object be better? ! __version__ = "0.1.1" ! __date__ = "2007-02-28" __all__ = ["__version__", "__date__"] |
From: alexander s. <a1...@us...> - 2007-02-28 10:23:01
|
Update of /cvsroot/fasttran/fasttran In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv17200 Modified Files: CHANGES Log Message: release version 0.1.1 Index: CHANGES =================================================================== RCS file: /cvsroot/fasttran/fasttran/CHANGES,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CHANGES 25 Feb 2007 05:09:11 -0000 1.1 --- CHANGES 28 Feb 2007 10:22:58 -0000 1.2 *************** *** 2,9 **** ======================== version 0.1.0 (25-feb-2007) --------------------------- ! first public release .. vim: set et ft=rst sts=2 sw=2 : --- 2,20 ---- ======================== + version 0.1.1 (28-feb-2007) + --------------------------- + + Fixes: + + - README text proofread by z-d. + - TM: don't memorize sentence pair if source and translation are the same. + - Sentences translated with quality 40% and less used highlight color + from previous sentence instead of violet. + - Set language ID in the translated document to the target language. + version 0.1.0 (25-feb-2007) --------------------------- ! First public release. .. vim: set et ft=rst sts=2 sw=2 : |
From: alexander s. <a1...@us...> - 2007-02-28 10:17:30
|
Update of /cvsroot/fasttran/fasttran/fasttran In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv14824 Modified Files: gui.py Log Message: change LanguageID in translated document; typo in .Translate: invalid highlight for scores < 40 Index: gui.py =================================================================== RCS file: /cvsroot/fasttran/fasttran/fasttran/gui.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** gui.py 13 Feb 2007 08:34:05 -0000 1.2 --- gui.py 28 Feb 2007 10:17:17 -0000 1.3 *************** *** 1,4 **** --- 1,6 ---- """fasttran Graphic User Interface""" """History (most recent first): + 28-feb-2007 [als] change LanguageID in translated document; + typo in .Translate: invalid highlight for scores < 40 13-feb-2007 [als] set frame icon 04-feb-2007 [als] created *************** *** 314,318 **** _highlight = 6 # wdRed else: ! _highligh = 12 # wdViolet _range.End = _range.Start + len(_phrase) if _translations: --- 316,320 ---- _highlight = 6 # wdRed else: ! _highlight = 12 # wdViolet _range.End = _range.Start + len(_phrase) if _translations: *************** *** 321,324 **** --- 323,327 ---- _range.Start = _range.End self.gauge.SetValue(_ii * 100. / _paragraphs.Count) + doc.Content.LanguageID = _tlang.msid return True |
From: alexander s. <a1...@us...> - 2007-02-28 09:53:42
|
Update of /cvsroot/fasttran/fasttran/fasttran In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv4846 Modified Files: tm.py Log Message: .store: ignore the pair if source and target are the same Index: tm.py =================================================================== RCS file: /cvsroot/fasttran/fasttran/fasttran/tm.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** tm.py 20 Feb 2007 06:48:07 -0000 1.2 --- tm.py 28 Feb 2007 09:53:40 -0000 1.3 *************** *** 26,29 **** --- 26,30 ---- """ """History (most recent first): + 28-feb-2007 [als] .store: ignore the pair if source and target are the same 20-feb-2007 [als] use pickle protocol version 2; added TM meta information *************** *** 365,368 **** --- 366,372 ---- sentence = self.normalize_source(sentence)[1] translation = self.normalize_source(translation)[1] + # ignore if source and target are the same + if sentence == translation: + return _id = self._db_strings.get(sentence.encode("utf-8"), None) if _id is None: |
From: alexander s. <a1...@us...> - 2007-02-28 09:46:45
|
Update of /cvsroot/fasttran/fasttran In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv2008 Modified Files: README Log Message: proofread by z-d Index: README =================================================================== RCS file: /cvsroot/fasttran/fasttran/README,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** README 19 Feb 2007 11:18:04 -0000 1.3 --- README 28 Feb 2007 09:46:33 -0000 1.4 *************** *** 3,17 **** ============ ! fasttran_ is a simple tool using Translation Memory (**TM**) databases ! to automate human text translations. Unlike common Computer Aided ! Translation (**CAT**) tools (OmegaT_, for instance) fasttran_ has no ! knobs to turn in the process of the translation. Text segmentation, TM ! operations et al. are all hidden under the cover; you just run the ! translator, get back a half-translated document, and continue your work ! with common text processor interface. ! fasttran_ was designed to suit freelance translators who find evolved ! interface of existing CAT tools too complicated to learn and ! operate. ============ --- 3,16 ---- ============ ! fasttran_ is a simple tool that uses a Translation Memory (**TM**) ! databases to automate human text translations. Unlike common ! Computer-Aided Translation (**CAT**) tools (OmegaT_, for instance), ! fasttran_ has no knobs to turn in the process of translating. ! Text segmentation, TM operations et al. are all hidden under the cover; ! you just run the translator, get back a half-translated document, ! and continue your work with a common text processor interface. ! fasttran_ was designed to suit freelance translators who find the evolved ! interface of existing CAT tools too complicated to learn and operate. ============ *************** *** 21,42 **** At present, fasttran_ can work with `Microsoft Word`_ documents only, and requires `Microsoft Windows`_ and `Microsoft Word`_ to run. ! Depending on selected download_ option, additional software may be ! required. ! Most complete installation file is ``fasttran-x.x.x-setup.exe`` ! (where ``x.x.x`` is version number, e.g. ``0.1.0`` in ``fasttran-0.1.0-setup.exe``). This installer executable includes everything needed to run fasttran_ (except for `Microsoft Windows`_ and `Microsoft Word`_, of course). It is highly recommended to take ! this download option. It's only drawback is bigger download and installation size. ! ``fasttran-x.x.x.win32.exe`` is Python_ module installer. If you ! use Python for everyday work, you may use this option to spare several MiBs of disk space. You will need to have installed Python_, ! pywin32_ and wxPython_. ! ``fasttran-x.x.x.tar.gz`` is fasttran_ source package. If you take ! this one, you must know what you are doing. ===== --- 20,41 ---- At present, fasttran_ can work with `Microsoft Word`_ documents only, and requires `Microsoft Windows`_ and `Microsoft Word`_ to run. ! Depending on the selected download_ option, additional software ! may be required. ! The most complete installation file is ``fasttran-x.x.x-setup.exe`` ! (where ``x.x.x`` is the version number, e.g. ``0.1.0`` in ``fasttran-0.1.0-setup.exe``). This installer executable includes everything needed to run fasttran_ (except for `Microsoft Windows`_ and `Microsoft Word`_, of course). It is highly recommended to take ! this download option. Its only drawback is the larger download and installation size. ! ``fasttran-x.x.x.win32.exe`` is the Python_ module installer. ! If you use Python for everyday work, you may take this option to spare several MiBs of disk space. You will need to have installed Python_, ! pywin32_ and wxPython_ for the module to work. ! ``fasttran-x.x.x.tar.gz`` is the fasttran_ source package. ! If you select this one, you must know what you are doing. ===== *************** *** 44,75 **** ===== ! Text translation with fasttran_ uses **Translation Memory** (**TM**) engine. Translation Memory is a database that keeps track of your ! previous translations. When you begin a work on new document, you let ! fasttran_ search your own TM for all sentences of this document and ! see how you translated similar sentences before. If fasttran_ finds a ! match, it replaces the sentence with found translation and marks it with ! colored background: ! - No color (white background) - exact match. You did translate ! exactly same sentence before, and fasttran_ replaced the sentence with your previous translation. ! - Grey background - no translation found. The sentence is left untranslated. ! - Other colors - found similar translation. The sentence was ! replaced, but translation does not suit the original well. You need ! to compare the sentence with one in the source document and fix the ! translation. Background color reflects the match quality, from ! green - very good match (found sentence was very close to original) - ! through yellow and red to violet - very bad match (the sentences ! differ significantly). ! Of course, "exactness" of the search result is meant in "computer" ! sense: the sentences *"What a beautiful day!"* and *"What a terrible ! day!"* are **very similar**: they differ with only one word. fasttran_ ! does not understand the meaning of words, it only knows how to split a ! text to sentences, and sentences to words. Before you can use fasttran_ to translate documents, you need to create --- 43,74 ---- ===== ! Text translation with fasttran_ uses a **Translation Memory** (**TM**) engine. Translation Memory is a database that keeps track of your ! previous translations. When you begin work on a new document, you let ! fasttran_ search your own TM for all the sentences of this document ! to see how you've translated similar sentences earlier. If fasttran_ ! finds a match, it replaces the sentence with the found translation ! and marks it with a colored background: ! - No color (white background): exact match. You translated exactly ! same sentence before, and fasttran_ has replaced the sentence with your previous translation. ! - Grey background: no translation found. The source sentence is untranslated. ! - Other colors: found a similar translation. The sentence was replaced ! but the translation does not fully suit the original. You need to ! compare the sentence with the one in the source document and fix ! the translation. The background color reflects match quality, ! from green - very good match, the found sentence was very close to ! the original - through yellow and red to violet - very bad match, ! the sentences differ significantly. ! Of course, the "exactness" of a search result is meant in the "computer" ! sense: the sentences *"What a beautiful day!"* and *"What a terrible day!"* ! are **very similar**: they differ in only one word. fasttran_ does not ! understand the meaning of words, it only knows how to split a text into ! sentences, and the sentences into words. Before you can use fasttran_ to translate documents, you need to create *************** *** 77,116 **** Find a pair of documents (source and translation) that you did before. ! In the fasttran_ window, activate the second notebook page: ``TM ! training``. Select source document language from the pull-down list. ! When you do this the first time, your languages will be somewhere in the ! middle of the list, ordered alphabetically. But as you do the training, ! used languages pop up to the beginning of the list. Enter source ! document name in the next entry field or click the button on the right ! side and select the document in ``Select a file`` dialog. Fill in ! target language and document file name and push the ``Learn!`` button. ! If all goes well, after some time you will be present with a message ! window saying how many sentences were learned from this document pair. ! Repeat learning for as many document pairs as you can find - the bigger ! are your TM databases, the better are your chances of getting a good ! translation. ! When you are done with learning, you may try to actually translate ! something. In fasttran_ window, switch to the first page: ! ``Translation``. Source and translation language selectors are set ! to the last language pair you used for TM training. Adjust if needed. ! Note that language selection lists on this page only allow to select ! language pairs for existing TM databases, you cannot select a language ! that you didn't teach to the program. Enter file name for the source ! document, or select source file from ``Select a file`` dialog. You may ! also specify target document name, but if you don't then it will be ! generated automatically from the source file name and target language ! tag. After some processing you will get a half-translated document, ! full of color marks. From here you're on your own. After you have finished translating the document, don't forget to feed ! your translation to TM training. Even if translation is perfectly good ! (improbable!) and you did not change anything, learning the translation ! does useful things [#]_ to your TM database. ! When you start using fasttran_, perhaps first translations will be very ! poor. Please do not be disappointed. As your TM bases grow bigger, ! translation quality will improve. Good luck! --- 76,118 ---- Find a pair of documents (source and translation) that you did before. ! In the fasttran_ window, activate the second tab: ``TM training``. ! Select your source document language from the pull-down list. ! The first time, your languages will be somewhere in the middle of the ! list, ordered alphabetically. But as you do the training, frequently-used ! languages pop up to the beginning of the list. Next, enter the name of ! the source document in the next input field or click the button to the ! right and select the document using the ``Select a file`` dialog. Fill ! in the target language and document file name and press the ``Learn!`` ! button. If all goes well, after some time you will be presented with a ! message window saying how many sentences were learned from this document ! pair. ! Repeat learning for as many document pairs as you can find. ! The bigger your TM databases, the better your chances are of getting ! a good automated translation. ! When you are done with learning, you can try to actually translate ! something. In the fasttran_ window, switch to the first tab, ! ``Translation``. The source and translation language selectors are ! set to the last language pair you used for TM training. Adjust these ! if needed. Note that the lists on this page only allow to select ! language pairs for existing TM databases, i.e. you can't select ! a language that you didn't teach to the program. Enter file name ! of the source document or select the file using the ``Select a file`` ! dialog. You may also specify the target document name, but if you don't ! then it will be generated automatically from the source file name ! and target language tag. After some processing you will get ! a half-translated document, full of color marks. From here on out, ! the translation is up to you. After you have finished translating the document, don't forget to feed ! your translation to the TM training utility. Even if the automated ! translation was perfectly good (improbable!) and you did not change ! anything, learning the translation does useful things [#]_ to your TM ! database. ! When you start using fasttran_, the first translations will probably ! be very poor. Please do not be disappointed. As your TM bases grow ! bigger, translation quality will improve. Good luck! |
From: alexander s. <a1...@us...> - 2007-02-25 05:09:44
|
Update of /cvsroot/fasttran/fasttran/fasttran In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv16169 Modified Files: version.py Log Message: version 0.1.0 Index: version.py =================================================================== RCS file: /cvsroot/fasttran/fasttran/fasttran/version.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** version.py 13 Feb 2007 05:47:45 -0000 1.1 --- version.py 25 Feb 2007 05:09:43 -0000 1.2 *************** *** 7,12 **** # wouldn't datetime.date object be better? ! __version__ = "0.0.2" ! __date__ = "2007-02-08" __all__ = ["__version__", "__date__"] --- 7,12 ---- # wouldn't datetime.date object be better? ! __version__ = "0.1.0" ! __date__ = "2007-02-25" __all__ = ["__version__", "__date__"] |
From: alexander s. <a1...@us...> - 2007-02-25 05:09:13
|
Update of /cvsroot/fasttran/fasttran In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv16130 Added Files: CHANGES Log Message: fasttran release history --- NEW FILE: CHANGES --- fasttran release history ======================== version 0.1.0 (25-feb-2007) --------------------------- first public release .. vim: set et ft=rst sts=2 sw=2 : |
From: alexander s. <a1...@us...> - 2007-02-25 04:47:32
|
Update of /cvsroot/fasttran/htdocs In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv7368 Modified Files: fasttran.ico Log Message: updated from sources Index: fasttran.ico =================================================================== RCS file: /cvsroot/fasttran/htdocs/fasttran.ico,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 Binary files /tmp/cvsmd9oiy and /tmp/cvsw9NaQP differ |
From: alexander s. <a1...@us...> - 2007-02-22 06:51:27
|
Update of /cvsroot/fasttran/fasttran/fasttran In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv1886 Modified Files: fasttran.ico Log Message: fix large icon Index: fasttran.ico =================================================================== RCS file: /cvsroot/fasttran/fasttran/fasttran/fasttran.ico,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 Binary files /tmp/cvsalLnY7 and /tmp/cvspiBKZR differ |
From: alexander s. <a1...@us...> - 2007-02-21 05:37:47
|
Update of /cvsroot/fasttran/htdocs In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv11025 Modified Files: index.shtml Log Message: describe download options Index: index.shtml =================================================================== RCS file: /cvsroot/fasttran/htdocs/index.shtml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** index.shtml 14 Feb 2007 08:19:01 -0000 1.1 --- index.shtml 21 Feb 2007 05:37:40 -0000 1.2 *************** *** 21,26 **** <p>At present, <a class="reference" href="http://fasttran.sourceforge.net/">fasttran</a> can work with <a class="reference" href="http://office.microsoft.com/en-us/word/default.aspx">Microsoft Word</a> documents only, and requires <a class="reference" href="http://www.microsoft.com/Windows/default.mspx">Microsoft Windows</a> and <a class="reference" href="http://office.microsoft.com/en-us/word/default.aspx">Microsoft Word</a> to run. ! Depending on selected download option, additional software may be required.</p> </div> <div class="section"> --- 21,39 ---- <p>At present, <a class="reference" href="http://fasttran.sourceforge.net/">fasttran</a> can work with <a class="reference" href="http://office.microsoft.com/en-us/word/default.aspx">Microsoft Word</a> documents only, and requires <a class="reference" href="http://www.microsoft.com/Windows/default.mspx">Microsoft Windows</a> and <a class="reference" href="http://office.microsoft.com/en-us/word/default.aspx">Microsoft Word</a> to run. ! Depending on selected <a class="reference" href="http://sourceforge.net/project/showfiles.php?group_id=189200">download</a> option, additional software may be required.</p> + <p>Most complete installation file is <tt class="docutils literal"><span class="pre">fasttran-x.x.x-setup.exe</span></tt> + (where <tt class="docutils literal"><span class="pre">x.x.x</span></tt> is version number, e.g. <tt class="docutils literal"><span class="pre">0.1.0</span></tt> in + <tt class="docutils literal"><span class="pre">fasttran-0.1.0-setup.exe</span></tt>). This installer executable includes + everything needed to run <a class="reference" href="http://fasttran.sourceforge.net/">fasttran</a> (except for <a class="reference" href="http://www.microsoft.com/Windows/default.mspx">Microsoft Windows</a> + and <a class="reference" href="http://office.microsoft.com/en-us/word/default.aspx">Microsoft Word</a>, of course). It is highly recommended to take + this download option. It's only drawback is bigger download and + installation size.</p> + <p><tt class="docutils literal"><span class="pre">fasttran-x.x.x.win32.exe</span></tt> is <a class="reference" href="http://www.python.org/">Python</a> module installer. If you + use Python for everyday work, you may use this option to spare + several MiBs of disk space. You will need to have installed <a class="reference" href="http://www.python.org/">Python</a>, + <a class="reference" href="http://sourceforge.net/project/showfiles.php?group_id=78018">pywin32</a> and <a class="reference" href="http://www.wxpython.org/">wxPython</a>.</p> + <p><tt class="docutils literal"><span class="pre">fasttran-x.x.x.tar.gz</span></tt> is <a class="reference" href="http://fasttran.sourceforge.net/">fasttran</a> source package. If you take + this one, you must know what you are doing.</p> </div> <div class="section"> |
From: alexander s. <a1...@us...> - 2007-02-20 06:48:12
|
Update of /cvsroot/fasttran/fasttran/fasttran In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv10123 Modified Files: tm.py Log Message: use pickle protocol version 2; added TM meta information Index: tm.py =================================================================== RCS file: /cvsroot/fasttran/fasttran/fasttran/tm.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** tm.py 13 Feb 2007 05:46:55 -0000 1.1 --- tm.py 20 Feb 2007 06:48:07 -0000 1.2 *************** *** 26,29 **** --- 26,31 ---- """ """History (most recent first): + 20-feb-2007 [als] use pickle protocol version 2; + added TM meta information 03-feb-2007 [als] created """ *************** *** 63,66 **** --- 65,74 ---- @ivar tgt: target language tag. + @type meta: C{dict} + @ivar meta: TM meta-information. + + At present, this dictionary has only one entry: + C{version} with value of C{1}. + @type delta: C{int} @ivar delta: maximum allowed length difference. *************** *** 156,159 **** --- 164,169 ---- - we'll need this later. + The C{words} table also contains TM meta-information dictionary. + Operations ---------- *************** *** 321,324 **** --- 331,349 ---- self._db_translations = anydbm.open(_db_prefix + ".translations", flag) self.load_wex("default.wex", src + ".wex") + _save_meta = False + if "" in self._db_words: + self.meta = loads(self._db_words[""]) + else: + self.meta = {} + _save_meta = True + if "version" not in self.meta: + self.meta["version"] = 1 + _save_meta = True + if _save_meta and (flag in "cwn"): + self.save_meta() + + def save_meta(self): + """Update TM meta information in the database""" + self._db_words[""] = dumps(self.meta, 2) def store(self, sentence, translation): *************** *** 354,358 **** return for _word in _words: ! _key = dumps((_word, len(_words))) if _key in self._db_words: self._db_words[_key] += "," + _id --- 379,383 ---- return for _word in _words: ! _key = dumps((_word, len(_words)), 2) if _key in self._db_words: self._db_words[_key] += "," + _id *************** *** 369,373 **** else: _translations[translation] = 1 ! self._db_translations[_id] = dumps(_translations) def lookup(self, sentence): --- 394,398 ---- else: _translations[translation] = 1 ! self._db_translations[_id] = dumps(_translations, 2) def lookup(self, sentence): *************** *** 455,459 **** _slen = _cnt + delta for _word in words: ! _ids = self._db_words.get(dumps((_word, _slen)), None) if _ids is None: _missing += 1 --- 480,484 ---- _slen = _cnt + delta for _word in words: ! _ids = self._db_words.get(dumps((_word, _slen), 2), None) if _ids is None: _missing += 1 |
From: alexander s. <a1...@us...> - 2007-02-19 11:18:12
|
Update of /cvsroot/fasttran/fasttran In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv12244 Modified Files: README Log Message: describe download options Index: README =================================================================== RCS file: /cvsroot/fasttran/fasttran/README,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** README 14 Feb 2007 07:15:52 -0000 1.2 --- README 19 Feb 2007 11:18:04 -0000 1.3 *************** *** 6,13 **** to automate human text translations. Unlike common Computer Aided Translation (**CAT**) tools (OmegaT_, for instance) fasttran_ has no ! knobs to turn in the process of the translation. Text segmentation, ! TM operations et al. are all hidden under the cover; you just run ! the translator, get back a half-translated document, and continue the ! work with common text processor interface. fasttran_ was designed to suit freelance translators who find evolved --- 6,13 ---- to automate human text translations. Unlike common Computer Aided Translation (**CAT**) tools (OmegaT_, for instance) fasttran_ has no ! knobs to turn in the process of the translation. Text segmentation, TM ! operations et al. are all hidden under the cover; you just run the ! translator, get back a half-translated document, and continue your work ! with common text processor interface. fasttran_ was designed to suit freelance translators who find evolved *************** *** 21,27 **** At present, fasttran_ can work with `Microsoft Word`_ documents only, and requires `Microsoft Windows`_ and `Microsoft Word`_ to run. ! Depending on selected download option, additional software may be required. ===== Usage --- 21,43 ---- At present, fasttran_ can work with `Microsoft Word`_ documents only, and requires `Microsoft Windows`_ and `Microsoft Word`_ to run. ! Depending on selected download_ option, additional software may be required. + Most complete installation file is ``fasttran-x.x.x-setup.exe`` + (where ``x.x.x`` is version number, e.g. ``0.1.0`` in + ``fasttran-0.1.0-setup.exe``). This installer executable includes + everything needed to run fasttran_ (except for `Microsoft Windows`_ + and `Microsoft Word`_, of course). It is highly recommended to take + this download option. It's only drawback is bigger download and + installation size. + + ``fasttran-x.x.x.win32.exe`` is Python_ module installer. If you + use Python for everyday work, you may use this option to spare + several MiBs of disk space. You will need to have installed Python_, + pywin32_ and wxPython_. + + ``fasttran-x.x.x.tar.gz`` is fasttran_ source package. If you take + this one, you must know what you are doing. + ===== Usage *************** *** 53,57 **** Of course, "exactness" of the search result is meant in "computer" sense: the sentences *"What a beautiful day!"* and *"What a terrible ! day!"* are **very similar**: they differ with only one word; fasttran_ does not understand the meaning of words, it only knows how to split a text to sentences, and sentences to words. --- 69,73 ---- Of course, "exactness" of the search result is meant in "computer" sense: the sentences *"What a beautiful day!"* and *"What a terrible ! day!"* are **very similar**: they differ with only one word. fasttran_ does not understand the meaning of words, it only knows how to split a text to sentences, and sentences to words. *************** *** 111,118 **** --- 127,138 ---- .. _External hyperlink targets: + .. _download: http://sourceforge.net/project/showfiles.php?group_id=189200 .. _fasttran: http://fasttran.sourceforge.net/ .. _Microsoft Windows: http://www.microsoft.com/Windows/default.mspx .. _Microsoft Word: http://office.microsoft.com/en-us/word/default.aspx .. _OmegaT: http://www.omegat.org/omegat/omegat.html + .. _Python: http://www.python.org/ + .. _pywin32: http://sourceforge.net/project/showfiles.php?group_id=78018 + .. _wxPython: http://www.wxpython.org/ .. |Python(r)| unicode:: Python U+00AE |
From: alexander s. <a1...@us...> - 2007-02-18 11:13:44
|
Update of /cvsroot/fasttran/fasttran/fasttran In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv29414 Modified Files: config.py Log Message: shorten data path in standalone distribution Index: config.py =================================================================== RCS file: /cvsroot/fasttran/fasttran/fasttran/config.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** config.py 13 Feb 2007 05:45:06 -0000 1.1 --- config.py 18 Feb 2007 11:13:43 -0000 1.2 *************** *** 1,4 **** --- 1,5 ---- """Configuration""" """History (most recent first): + 18-feb-2007 [als] shorten data path in standalone distribution 03-feb-2007 [als] created """ *************** *** 35,39 **** # data files are put nearby. self.system_data_path = os.path.dirname(__file__).replace( ! "library.zip", "Lib\\site-packages") _env = os.environ self.user_home = _env.get("USERPROFILE") or _env.get("HOME") \ --- 36,40 ---- # data files are put nearby. self.system_data_path = os.path.dirname(__file__).replace( ! "library.zip\\fasttran", "data") _env = os.environ self.user_home = _env.get("USERPROFILE") or _env.get("HOME") \ |
From: alexander s. <a1...@us...> - 2007-02-18 11:10:57
|
Update of /cvsroot/fasttran/fasttran In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv28263 Modified Files: setup.py Log Message: build standalone installer with py2exe & InnoSetup Index: setup.py =================================================================== RCS file: /cvsroot/fasttran/fasttran/setup.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** setup.py 17 Feb 2007 07:53:53 -0000 1.3 --- setup.py 18 Feb 2007 11:10:51 -0000 1.4 *************** *** 1,9 **** ! """fasttran setup script ! ! @copyright 2007 alexander smishlajev <al...@ty...> ! ! """ # FIXME: generate_docs() must be reimplemented as a distutils command <als> """History (most recent first): 17-feb-2007 [als] include docs 14-feb-2007 [als] added long_description; --- 1,6 ---- ! """fasttran setup script""" # FIXME: generate_docs() must be reimplemented as a distutils command <als> """History (most recent first): + 18-feb-2007 [als] build standalone installer with py2exe & InnoSetup 17-feb-2007 [als] include docs 14-feb-2007 [als] added long_description; *************** *** 14,18 **** __date__ = "$Date$"[7:-2] ! from distutils.core import setup import glob import os --- 11,16 ---- __date__ = "$Date$"[7:-2] ! from distutils.core import setup, Command ! from distutils.file_util import write_file import glob import os *************** *** 43,46 **** --- 41,77 ---- """ + ISS=""" + [Setup] + AppName=fasttran + AppVerName=fasttran version %(version)s + AppCopyright=\xA9 2007 alexander smishlajev <al...@Ty...> + AppPublisherURL=http://fasttran.sourceforge.net/ + VersionInfoVersion=%(version)s + DefaultDirName={pf}\\fasttran + DefaultGroupName=fasttran + SourceDir=.. + SetupIconFile=fasttran\\fasttran.ico + UninstallDisplayIcon={app}\\data\\fasttran.ico + Compression=lzma + SolidCompression=yes + TimeStampsInUTC=yes + OutputDir=dist + OutputBaseFilename=fasttran-%(version)s-setup + + [Files] + Source: "dist\\bin\\*.*"; DestDir: "{app}" + Source: "dist\\bin\\Lib\\site-packages\\fasttran\\*.*"; DestDir: "{app}\\data" + Source: "doc\\*.html"; DestDir: "{app}\\doc" + Source: "doc\\README.html"; DestDir: "{app}\\doc"; Flags: isreadme + Source: "README"; DestDir: "{app}\\doc" + Source: "CHANGES"; DestDir: "{app}\\doc" + Source: "LICENSE"; DestDir: "{app}\\doc" + + [Icons] + Name: "{group}\\fasttran"; Filename: "{app}\\fasttran.exe"; \ + IconFilename: "{app}\\data\\fasttran.ico"; WorkingDir: "{userdocs}" + Name: "{group}\\README"; Filename: "{app}\\doc\\README.html" + """ + def get_version(): """Return package version string""" *************** *** 86,89 **** --- 117,144 ---- rst2html(_source, _target) + class installer(Command): + + description = "create standalone installer" + + user_options = [ + ('iscc=', None, "InnoSetup executable path"), + ] + + def initialize_options(self): + self.iscc = None + + def finalize_options(self): + if self.iscc == None: + self.iscc = os.path.join(os.environ["ProgramFiles"], + "Inno Setup 5", "ISCC.exe") + + def run(self): + self.run_command("py2exe") + _iss_file = os.path.join("build", "setup.iss") + self.execute(write_file, + (_iss_file, [ISS % {"version": self.distribution.get_version()}]), + "writing InnoSetup script to '%s'" % _iss_file) + self.spawn([self.iscc, _iss_file]) + def run(): if publish_cmdline: *************** *** 123,127 **** console=["scripts/fasttran"], data_files=[ ! (DATA_DIR, glob.glob("fasttran/*.txt") + glob.glob("fasttran/*.srx") + glob.glob("fasttran/*.wex")), --- 178,183 ---- console=["scripts/fasttran"], data_files=[ ! (DATA_DIR, ["fasttran/fasttran.ico"] ! + glob.glob("fasttran/*.txt") + glob.glob("fasttran/*.srx") + glob.glob("fasttran/*.wex")), *************** *** 129,132 **** --- 185,189 ---- + glob.glob("doc/*.html")), ], + cmdclass={"installer": installer}, options={"py2exe": { "optimize": 2, |
From: alexander s. <a1...@us...> - 2007-02-17 07:54:41
|
Update of /cvsroot/fasttran/fasttran In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv26105 Modified Files: MANIFEST.in Log Message: include generated html docs Index: MANIFEST.in =================================================================== RCS file: /cvsroot/fasttran/fasttran/MANIFEST.in,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MANIFEST.in 13 Feb 2007 05:31:53 -0000 1.1 --- MANIFEST.in 17 Feb 2007 07:54:39 -0000 1.2 *************** *** 2,4 **** include fasttran/*.py include fasttran/*.wex fasttran/*.srx ! include doc/*.txt --- 2,4 ---- include fasttran/*.py include fasttran/*.wex fasttran/*.srx ! include doc/*.txt doc/*.html doc/default.css |
From: alexander s. <a1...@us...> - 2007-02-17 07:53:58
|
Update of /cvsroot/fasttran/fasttran In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv25732 Modified Files: setup.py Log Message: include docs Index: setup.py =================================================================== RCS file: /cvsroot/fasttran/fasttran/setup.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** setup.py 14 Feb 2007 08:32:35 -0000 1.2 --- setup.py 17 Feb 2007 07:53:53 -0000 1.3 *************** *** 6,9 **** --- 6,10 ---- # FIXME: generate_docs() must be reimplemented as a distutils command <als> """History (most recent first): + 17-feb-2007 [als] include docs 14-feb-2007 [als] added long_description; generate HTML documents *************** *** 25,28 **** --- 26,30 ---- DATA_DIR = "Lib\\site-packages\\fasttran" + DOC_DIR = "Lib\\site-packages\\fasttran\\doc" DESCRIPTION = """\ *************** *** 52,59 **** """Generate HTML document from RST source ! Parameters: ! source: source (rst) file name ! target: target (html) file name ! force: if set, generate html even if source file is not newer than target --- 54,65 ---- """Generate HTML document from RST source ! @type source: C{str} ! @param source: source (rst) file name ! ! @type target: C{str} ! @param target: target (html) file name ! ! @type force: C{bool} ! @param force: if set, generate html even if source file is not newer than target *************** *** 116,122 **** scripts=["scripts/fasttran", "scripts/fasttran.bat"], console=["scripts/fasttran"], ! data_files=[(DATA_DIR, glob.glob("fasttran/*.txt") ! + glob.glob("fasttran/*.srx") ! + glob.glob("fasttran/*.wex"))], options={"py2exe": { "optimize": 2, --- 122,132 ---- scripts=["scripts/fasttran", "scripts/fasttran.bat"], console=["scripts/fasttran"], ! data_files=[ ! (DATA_DIR, glob.glob("fasttran/*.txt") ! + glob.glob("fasttran/*.srx") ! + glob.glob("fasttran/*.wex")), ! (DOC_DIR, ["README", "CHANGES", "LICENSE"] ! + glob.glob("doc/*.html")), ! ], options={"py2exe": { "optimize": 2, |
From: alexander s. <a1...@us...> - 2007-02-14 09:22:00
|
Update of /cvsroot/fasttran/htdocs In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv1152 Modified Files: style.css Log Message: make bold texts slightly lighter Index: style.css =================================================================== RCS file: /cvsroot/fasttran/htdocs/style.css,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** style.css 14 Feb 2007 08:12:56 -0000 1.1 --- style.css 14 Feb 2007 09:10:37 -0000 1.2 *************** *** 13,17 **** } ! :link { color: #004080; } .epigraph { --- 13,19 ---- } ! :link { ! color: #004080; ! } .epigraph { *************** *** 21,28 **** --- 23,35 ---- } + strong { + color:#001A33; + } + h1, h2 { line-height:1.3em; margin:0.2em 0; background-color:#D9ECFF; + color:#001A33; } h1 { font-size:160%; } |