summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Version 2.0.7HEAD2.0.7masterShaun McCance2021-09-252-1/+6
|
* Merge pull request #40 from ptoscano/update-gitignoreShaun McCance2020-12-261-15/+12
|\ | | | | Update .gitignore
| * Update .gitignorePino Toscano2020-05-191-15/+12
| | | | | | | | | | | | | | | | - remove entries referring to non-existing stuff - prefix files appearing in the top-level directory with '/' - add '/' as suffix for directories - add '*.mo' for files created during the test run - sort the entries
* | Fix errors from accidental global variable removalShaun McCance2020-12-261-7/+8
| | | | | | | | | | | | In a recent commit for profiling, I moved the __main__ code to a main() function. This broke some stuff that relied on an accidentally global variable. Now the variable gets passed as a param, as it should.
* | Cache computed values for translate, localefilter, and locnoteShaun McCance2020-12-121-6/+35
| | | | | | | | | | | | | | | | If these aren't explicitly set for a node with a selector or local markup, then we have to chain up, often all the way to the root. But we were doing this over and over again, chaining up across the same nodes. This change stores the computed value, so chaining up usually hits that cache. I was careful to clear the cache if new rules are applied.
* | Don't re-lookup ITS params for every single ruleShaun McCance2020-12-061-26/+39
|/ | | | | | | | | We have to create a new XPath context for every rule, and we have to freshly apply any ITS params to that context. But what we were also doing is looking thru the children of the parent ITS rules element for param element each time. This was inefficient. Looking for param elements only once per ruleset gives a small but measurable speed boost.
* Version 2.0.62.0.6Shaun McCance2019-04-062-1/+6
|
* Make DocBook keyword element within textShaun McCance2018-12-302-0/+2
|
* Apply ITS files passed with -i in --join modeShaun McCance2018-11-081-0/+3
| | | | Fixes https://github.com/itstool/itstool/issues/34
* Version 2.0.52.0.5Shaun McCance2018-10-282-1/+8
|
* Auto update to INSTALL fileShaun McCance2018-10-281-161/+159
|
* Fix py 2/3 issues and add a test caseShaun McCance2018-08-217-23/+92
|
* Open file as bytes, since we're saving bytes!Álvaro Muñoz2018-08-201-3/+3
|
* Fix #28 (python 3.7, macOS)Álvaro Muñoz2018-08-181-0/+3
|
* Fix #30Álvaro Muñoz2018-08-181-0/+2
|
* Fix compatibility with pyhton 3.7 (no need to encode to bytes)Álvaro Muñoz2018-08-181-2/+2
|
* Be more careful about libxml2 memory managementShaun McCance2017-10-251-2/+11
| | | | I think this fixes https://github.com/itstool/itstool/issues/17
* Version 2.0.42.0.4Shaun McCance2017-10-162-1/+5
|
* Use $PYTHON for libxml2 check to use the right pythonShaun McCance2017-10-161-1/+1
| | | | Fixes https://github.com/itstool/itstool/issues/16
* Update INSTALL fileShaun McCance2017-10-161-7/+12
|
* Fix massive performance issueShaun McCance2017-10-111-2/+9
| | | | Fixed https://github.com/itstool/itstool/issues/15
* Version 2.0.32.0.3Shaun McCance2017-10-042-1/+9
|
* Merge pull request #14 from claudep/placeholderShaun McCance2017-08-151-7/+8
|\ | | | | Get Placeholder out of Message
| * Merge branch 'master' into placeholderShaun McCance2017-08-151-79/+116
| |\ | |/ |/|
* | Merge pull request #3 from hsoft/masterShaun McCance2017-08-151-79/+114
|\ \ | | | | | | | | | | | | Add python 3 support All tests pass with both py2 and py3
| * | Fix problem with merging translations under py3Virgil Dupras2016-01-161-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes three problems at once: 1. When fiddling with credits nodes, we would get an error about libxml2 expecting `str` rather than `bytes`. We could fix this by encoding the value only when uner py2. 2. When writing the merged XML, our serlialized data would be `str` under py3, which would cause implicit encoding problems when writing that contents to the file. 3. `fout` would not be closed after writing, which would sometimes cause the target file to end up with no contents at all (at least on my machine.
| * | Add python 3 supportVirgil Dupras2015-03-151-77/+103
| | |
* | | Fix keep entities mode after libxml2 changesShaun McCance2017-08-151-0/+2
| | | | | | | | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=762110
| | * Get Placeholder out of MessageClaude Paroz2017-05-011-7/+8
| |/ |/|
* | Add -j command to UsageShaun McCance2016-09-021-1/+3
| |
* | Add --path option for extra paths for ITS filesShaun McCance2016-08-311-2/+17
| |
* | Don't error out (except under -s) for mismatched placeholdersShaun McCance2016-03-141-1/+11
|/
* Added secondary setup.py to make it easier to upload to pypiShaun McCance2014-06-034-1/+32
|
* Fix UTF-8 handling for translated attributesShaun McCance2014-03-176-1/+66
|
* Version 2.0.22.0.2Shaun McCance2013-12-172-1/+7
|
* itstool.1: Update man pageShaun McCance2013-12-172-48/+91
|
* Don't hardcode python pathRyan Lortie2013-12-112-1/+3
| | | | | | | Instead, use automake to find it at runtime and put #!@PYTHON@ at the top of itstool.in. https://bugs.freedesktop.org/show_bug.cgi?id=72533
* Fixed crash in locale filter and drop rule, #715116Shaun McCance2013-11-241-2/+2
| | | | | When the dropped node has no preceding sibling, itstool crashes because it tries to unlink prev node if it's blank.
* Version 2.0.12.0.1Shaun McCance2013-11-182-1/+5
|
* its: Consolidate ITS rules for better performanceShaun McCance2013-11-045-363/+355
|
* NEWS: Fixed typoShaun McCance2013-11-011-1/+1
|
* Version 2.0.02.0.0Shaun McCance2013-11-012-1/+20
|
* docbook*.its: Make info children always not within textits-2-0Shaun McCance2013-11-012-0/+6
| | | | | | | Some of the children are marked within text because they should be when appearing in a para. But letting info appear as if it were a text run hits some strange corner cases that cause locale filter not to be applied as you might think it should.
* its: Exclude editor remarks/comments with locale filterShaun McCance2013-11-013-5/+6
|
* itstool.in: Allow users to set ITS paramsShaun McCance2013-11-012-24/+39
|
* its: Switched built-in ITS rules to 2.0Shaun McCance2013-10-314-4/+4
|
* docbook5.its: Added DocBook 5 supportShaun McCance2013-10-313-3/+207
| | | | Also minor fixed to DocBook 4 I ran across
* docbook.its: Updated preserve space and external resourceShaun McCance2013-10-311-10/+9
|
* mallard.its: Updated preserve space and external resourceShaun McCance2013-10-311-3/+3
|
* xhtml.its: Updated preserve space and external resourceShaun McCance2013-10-311-1/+4
|