summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAge
* Handle HTML with embedded tagsPhilip Chimento2015-06-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When an element, such as <p>, has a name="translatable" attribute, we also want to grab markup tags inside the element and translate them as well. For example, previously this HTML: <p name="translatable">An embedded <b>tag</b> in a paragraph</p> would result in the following string being extracted: _("An embedded"); However, we want it to be: _("An embedded <b>tag</b> in a paragraph"); This removes the use of BeautifulSoup from the eos-html-extractor script. Unfortunately BeautifulSoup could have done this quite easily, but it does not provide any line number information, which we need. Previously in order to get the line numbers we also used html.parser from Python's standard library, to augment the data we got from BeautifulSoup. However, this issue required html.parser to do all the work that BeautifulSoup did anyway, so there is no reason to use BeautifulSoup anymore. [endlessm/eos-sdk#3291]
* Handle quotes in HTML stringsPhilip Chimento2015-06-18
| | | | | | | When generating the .dummy.c file, eos-html-extractor previously did not escape quotes correctly. [endlessm/eos-sdk#3291]
* Handle excess whitespace in stringsPhilip Chimento2015-06-18
| | | | | | | | | | | | Whitespace between words and tags doesn't matter to HTML. Indeed, the text in a translatable element may be formatted any way over any number of lines, so we normalize all consecutive whitespace to be just one space character and strip whitespace from the beginning and end of the strings. This is so that translators are not confronted with strange newlines and whitespace on Transifex. [endlessm/eos-sdk#3291]
* Ensure stdout is UTF-8Philip Chimento2015-06-05
| | | | | | | | | This gets the underlying byte stream of sys.stdout and wraps it in a UTF-8 encoder. That is then used as the default output file rather than sys.stdout itself, which on Jenkins may not have a default encoding of UTF-8. [endlessm/eos-sdk#3245]
* Set encoding on input and output filesPhilip Chimento2015-06-05
| | | | | | | | Since this is Python 3, we can specify at file-open time what the encoding of the input and output files is to be. This should fix any build errors with non-ASCII characters in an ASCII terminal environment. [endlessm/eos-sdk#3245]
* html-extractor: be more explicit about encoding conversionCosimo Cecchi2015-06-04
| | | | Try to fix a Jenkins test failure.
* Fix help strings of eos-json-extractorPhilip Chimento2015-06-04
| | | | | | | | I noticed that --version gave the wrong description, so I removed the description entirely. I changed the help string to parallel that of eos-html-extractor. [endlessm/eos-sdk#3245]
* Port eos-html-extractor to Python 3Philip Chimento2015-06-04
| | | | | | May as well be forward compatible, while we're touching this. [endlessm/eos-sdk#3245]
* Fix bug with no commentsPhilip Chimento2015-06-04
| | | | | | | eos-html-extractor would crash if it encountered some text comment before it had encountered a comment. [endlessm/eos-sdk#3245]
* Avoid global statePhilip Chimento2015-06-04
| | | | | | Another minor cleanup; TranslatableHTMLParser shouldn't use global state. [endlessm/eos-sdk#3245]
* Avoid unnecessary importsPhilip Chimento2015-06-04
| | | | | | | We don't need to import all of os, just os.path; and urllib was not necessary for reading the file. [endlessm/eos-sdk#3245]
* eos-html-extractor PEP8 and consistency cleanupPhilip Chimento2015-06-04
| | | | [endlessm/eos-sdk#3245]
* Port eos-html-extractor to use argparsePhilip Chimento2015-06-04
| | | | | | For more consistency in command line argument handling. [endlessm/eos-sdk#3245]
* Add eos-html-extractor and m4 filePhilip Chimento2015-06-04
| | | | | | | | | | | | This is taken almost directly from the existing version in eos-english. Cleanups to follow in subsequent commits. Previously the m4 code was in two separate macros, but since they were much the same, I combined them into one macro. This also adds a very minimal test for eos-html-extractor; basically as a very quick regression test for the cleanups to follow. [endlessm/eos-sdk#3245]
* Remove ancient test runnerPhilip Chimento2015-04-17
| | | | | | | This test runner dates from even before eos-jasmine, and is not used anywhere. [endlessm/eos-sdk#3054]
* Merge pull request #493 from endlessm/issues/1620Cosimo Cecchi2014-01-24
|\ | | | | First round of dev vm preparation scripts
| * Added automatic install of eos-dev if it's not on the VMSrdjan Grubor2014-01-24
| | | | | | | | [endlessm/eos-sdk#1620]
| * Removed need for bash on setting the personalitySrdjan Grubor2014-01-24
| | | | | | | | [endlessm/eos-sdk#1620]
| * Instead of softlinking ansible-playbook, we copy it into binSrdjan Grubor2014-01-24
| | | | | | | | [endlessm/eos-sdk#1620]
| * Changed the remote cache dir to be more standardSrdjan Grubor2014-01-24
| | | | | | | | [endlessm/eos-sdk#1620]
| * Removed obsolete filesSrdjan Grubor2014-01-24
| | | | | | | | [endlessm/eos-sdk#1620]
| * Applied a better implementation of setting the dev folder on the desktopSrdjan Grubor2014-01-22
| | | | | | | | [endlessm/eos-sdk#1620]
| * Cleaned the scripts up to not be split by sudo prefix by using sudo variable ↵Srdjan Grubor2014-01-21
| | | | | | | | | | | | per task [endlessm/eos-sdk#1620]
| * Moved copying of desktop links to a separate scriptSrdjan Grubor2014-01-21
| | | | | | | | [endlessm/eos-sdk#1620]
| * Renamed setup_other_tools script as it could be ambiguousSrdjan Grubor2014-01-21
| | | | | | | | [endlessm/eos-sdk#1620]
| * Removed the apply in desktop update script since it wasn't neededSrdjan Grubor2014-01-17
| | | | | | | | [endlessm/eos-sdk#1620]
| * Updated the READMESrdjan Grubor2014-01-16
| | | | | | | | [endlessm/eos-sdk#1620]
| * Moved ansible directory into toolsSrdjan Grubor2014-01-16
| |
* | Use #!/usr/bin/env in our shebangsSam Spilsbury2014-01-14
|/ | | | [endlessm/eos-sdk#475]
* Merge pull request #431 from endlessm/issues/335P. F. Chimento2013-12-10
|\ | | | | #335 Integrated JSON extraction utility
| * Integrated JSON extraction utilityFernando2013-12-10
| | | | | | | | | | | | | | | | | | | | | | | | The utility used in eos-english and eos-programming-app was integrated and installed as part of the SDK CR comments addressed include: - Integrated new facilities available on GTK - Removed duplicate prototype declaration - Reformatted CLEANFILES var declaration - Used configure.ac to get @PACKAGE_VERSION@ - Added version() and usage() utilities [endlessm/eos-sdk#335]
* | Merge pull request #434 from endlessm/issues/432Rory MacQueen2013-12-10
|\ \ | |/ |/| Use System.exit() and System.programInvocationName
| * Use System.exit() and System.programInvocationNamePhilip Chimento2013-12-09
| | | | | | | | | | | | | | In GJS >= 1.38, these facilities are available. This removes the workarounds that we had for lack of these facilities. [endlessm/eos-sdk#432]
* | Subcommand 'eos-application-manifest init'Philip Chimento2013-12-09
| | | | | | | | | | | | | | | | | | This implements the 'init' subcommand of the application manifest tool, which creates a new manifest in the current directory. [endlessm/eos-sdk#154] [endlessm/eos-sdk#154]
* | eos-application-manifest: Fix bug in help formattingPhilip Chimento2013-12-09
| | | | | | | | [endlessm/eos-sdk#154]
* | eos-application-manifest: Install subcommands in $libexecdirPhilip Chimento2013-12-09
|/ | | | | | | $libexecdir/eos-application-manifest, instead of $datadir/eos-application-manifest [endlessm/eos-sdk#154]
* 'eos-application-manifest' tool with subcommandsPhilip Chimento2013-10-18
| | | | | | | | This is the framework for an 'eos-application-manifest' tool with subcommands as in git. Currently the 'help' and 'version' subcommands are implemented. [endlessm/eos-sdk#152]
* First attempt at an EOS test runnerPhilip Chimento2013-09-16
This adds a script eos-run-test which is adapted from gjs_run_tests, but does not try to discover the tests itself. Instead, in keeping with Automake's test suite facilities, it takes the filename of a test to run. [endlessm/eos-sdk#290]