Commit graph

873 commits

Author SHA1 Message Date
Curtis Gedak 98a629454e Add support for pandoc v2 command line options
Now both pandoc v1 and v2 are supported.

Closes issue #304
2018-11-20 10:21:48 -07:00
Curtis Gedak 2b98561981 Add -B option to python3 -m pytest -vs command
Python only shows the deprecation warnings on initial run [1].

[1] https://bugs.python.org/issue30091

To work around this add the "-B" option to python invocation.
2018-11-16 12:52:56 -07:00
Curtis Gedak 60b58d9658 Fix Python 3.7 DeprecationWarning use local.format_string() messages
Fix by replacing locale.format() with locale.format_string().
2018-11-16 12:52:56 -07:00
Curtis Gedak 7f592bae41 Fix Python 3.6 DeprecationWarning invalid escape sequence messages
Fix by ensuring that regular expressions are constructed using either
raw string literals [1] or double backslashes [2].

[1] https://stackoverflow.com/questions/44325948/pandas-invalid-escape-sequence-after-update
[2] https://github.com/joblib/joblib/pull/526

Note that python only shows the deprecation warnings on initial run [3].

[3] https://bugs.python.org/issue30091

To work around this issue, remove the cached bytecode with:

    find . -name "__pycache__" -exec rm -rf {} \;

Then to prevent compiling to bytecode add the "-B" option to python:

    python3 -B -m pytest -vs
2018-11-16 12:52:56 -07:00
Curtis Gedak af53102e77 Fix pytest warning about duplicate name when running tests
When running pytest on kubuntu 16.04 the following warning was displayed:

    $ python3 -m pytest -v
    ...
    ./manuskript/load_save/version_1.py:319: \
    UserWarning: Duplicate name: 'outline/0-Folder/0-Text-3.md'
      zf.writestr(filename, content, compress_type=compression)

The error was tracked down using the following pytest invocation:

    $ python3 -m pytest -v -W error::UserWarning

This invocation showed 4 occurrences similar to the following warning:

    self = <zipfile.ZipFile filename='/tmp/tmpgs_sjpzr.msk' mode='w'>
    zinfo = <[AttributeError("compress_size") raised in repr()] \
    ZipInfo object at 0x7f3cc0124588>

        def _writecheck(self, zinfo):
            """Check for errors before writing a file to the archive."""
            if zinfo.filename in self.NameToInfo:
                import warnings
    >           warnings.warn('Duplicate name: %r' % zinfo.filename, \
                stacklevel=3)
    E           UserWarning: Duplicate name: 'outline/0-Folder/0-Text-3.md'

These warnings arose in the following 4 tests:

  - test_references
  - test_autoLoad
  - test_loadExportWiget
  - test_loadImportWiget

The cause of the issue is that in manuskript/tests/conftest.py, the
mainWindow::closeProject() method is called to close the project, but
the project was never loaded.  This meant the zip file setting
defaulted to True, when in fact the Acts sample project is not stored
in a single zip project file.

Fix by removing the call to MW.closeProject() before the project is
loaded.
2018-11-16 12:52:09 -07:00
Curtis Gedak 5ef8e8361b Prevent build and deploy steps for linux on Travis CI
It appears that specifing an "os:" condition is invalid for the
.travis.yml syntax.  Use a custom "condition:" statement instead.
2018-11-15 13:15:50 -07:00
Curtis Gedak 200f3544a9 Limit pyinstaller package build and deployment to osx in Travis CI 2018-11-15 12:25:49 -07:00
Curtis Gedak b0774b4149 Fix segmentation fault on import
Manuskript started to segmentation fault on import starting with Qt 5.11.

I found the following link and the Qt bug links within to be useful in
my trouble-shooting efforts.

[Qt 5.11] Various Applications Segfault in 'libfm-qt'
https://github.com/lxqt/libfm-qt/issues/164

Closes issue #402
2018-11-11 13:31:06 -07:00
Curtis Gedak 026861ee87 Fix plot importance changes if delete earlier plot and click other plots
The root cause was a mismatch between plot IDs and plot model rows.

This issue would appear when a plot was deleted such that the plot IDs
did not match the plot model row numbers and different plots had
different importance levels.  The problem would not occur if the most
recently added plot was deleted.

The plot ID / plot model row mismatch was introduced with the
following commit:

    Fixes: add plot then choose new plot does not set \
    importance slider
    3569f78928

Closes issue #404
2018-11-05 09:29:53 -07:00
Curtis Gedak 729489a77e Improve pandoc compile/export return code handling
See issue #186
2018-10-31 10:31:53 -06:00
Paweł Świątkowski b50d627333 Enable testing in Travis CI 2018-10-30 17:36:25 +01:00
saboarpad b0c9c8243f
Translated using Weblate (Hungarian)
Currently translated at 100.0% (798 of 798 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/hu/
2018-10-29 18:24:36 +01:00
nicxxx 3cc475bf0a
Translated using Weblate (German)
Currently translated at 100.0% (798 of 798 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/de/
2018-10-29 18:23:44 +01:00
saboarpad 70674616dd
Added translation using Weblate (Hungarian) 2018-10-27 21:16:57 +02:00
Curtis Gedak 847fb98410 Fix Travis CI build error on OSX - fails with pip3: command not found
The Travis CI builds are failing with the following messages:

    sudo -H pip3 install --upgrade pip setuptools wheel
    sudo: pip3: command not found

    The command "if [ "$TRAVIS_OS_NAME" = "osx" ]; then bash package/prepare_osx.sh; fi" failed and exited with 1 during .

It appears that homebrew recipes for Python3 and pip3 install and
invocation keep changing (see Homebrew version after 1.5).

https://stackoverflow.com/questions/17271319/how-do-i-install-pip-on-macos-or-os-x
2018-10-14 14:37:25 -06:00
RiderExMachina 41e9467267 Fix crash in Outline mode with multi-item select #355
Closes issue #355 and pull request #385
2018-10-14 11:10:46 -06:00
ditokp 022635fb5e
Translated using Weblate (Indonesian)
Currently translated at 1.8% (15 of 798 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/id/
2018-10-14 12:32:54 +02:00
ditokp 21efa0b904
Added translation using Weblate (Indonesian) 2018-10-13 12:01:57 +02:00
bart deruyter 6826159a7a
Translated using Weblate (Dutch)
Currently translated at 99.8% (797 of 798 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/nl/
2018-10-12 23:25:21 +02:00
Samuele Rini a7a261185b
Translated using Weblate (Italian)
Currently translated at 100.0% (798 of 798 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/it/
2018-10-08 20:57:21 +02:00
Vladimir Ivakin 18fc06f28e
Translated using Weblate (Russian)
Currently translated at 100.0% (798 of 798 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/ru/
2018-10-08 20:36:13 +02:00
Samuele Rini 108efd4d9c
Added translation using Weblate (Italian) 2018-10-08 18:19:39 +02:00
Curtis Gedak 21423734e9 Revert "Minor grammar fixes"
This reverts commit 2fdf8c64bf.

The problem introduced by the commit is that the Editor pane would
incorrectly label book elements with the plural form of a word.  For
example "Books 4", "Sections 2", "Chapters 1", or "Scenes 3".  Hence
the need to undo the commit.

Closes issue #383.
2018-09-20 14:57:44 -06:00
RiderExMachina 5f8168fb37 Moved incorrectly placed parameter to correct place. Closes #377. 2018-09-17 23:32:10 -07:00
RiderExMachina 2fdf8c64bf Minor grammar fixes
Fix grammar regarding multiple of an object.
2018-09-11 10:32:51 -06:00
Lech Baczynski 3fdef2b800 Fix for compile/export crash (error when saving in cp1250) #331
See issue #331 and pull request #340
2018-08-21 10:55:53 -06:00
peter88213 e58e6e3cca
Translated using Weblate (German)
Currently translated at 99.8% (797 of 798 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/de/
2018-08-19 18:45:13 +02:00
Curtis Gedak 97e4679d83 ========== manuskript-0.7.0 ========== 2018-08-15 09:25:21 -06:00
Curtis Gedak 378f03c0b6 Clear Cheatsheet results when filter text empty 2018-08-14 09:04:00 -06:00
Curtis Gedak 713528a239 Fix crash if Cheatsheet filter term not found and Enter key pressed #354
See issue #354.
2018-08-14 09:04:00 -06:00
ijet 0bb8622aef
Translated using Weblate (Russian)
Currently translated at 100.0% (798 of 798 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/ru/
2018-08-09 14:44:10 +02:00
Curtis Gedak 0d84202da6 Add new language translations to the Settings window 2018-08-06 11:27:29 -06:00
Curtis Gedak e1284b32b6 Update all language translation source .ts files
Update the language translation source '.ts' files with the
translatable strings in the source code with the following command:

$ make translation

This effectively runs the following command:

$ pylupdate5 -noobsolete i18n/manuskript.pro
2018-08-06 11:09:58 -06:00
Curtis Gedak 0c48ba4e93 Compile all language translation updates into respective .qm files
After updating the '.ts' translation source files from weblate,
compile all of the language translations into '.qm' files.

This was done with the following command:

$ make i18n

This effectively runs the 'lrelease' command on each '.ts' file.  For
example:

$ lrelease i18n/manuskript_es.ts
2018-08-06 11:05:26 -06:00
Curtis Gedak 34af53d12b Add all current weblate languages to i18n/manuskript.pro
Prior to this step, the weblate language translations were merged into
the manuskript git repository with the following commands:

git remote add weblate  https://hosted.weblate.org/git/manuskript/translations/

git remote update weblate
git checkout develop
git merge weblate/develop
2018-08-06 10:44:08 -06:00
Curtis Gedak dea3a012b1 Merge remote-tracking branch 'weblate/develop' into develop 2018-08-06 10:34:11 -06:00
ijet c3518a6f5f
Translated using Weblate (Russian)
Currently translated at 100.0% (798 of 798 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/ru/
2018-08-06 10:42:02 +02:00
Viktor S 10b5915abf
Translated using Weblate (Russian)
Currently translated at 100,0% (798 of 798 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/ru/
2018-08-04 14:44:55 +02:00
pindarogb dd7ca66275
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100,0% (798 of 798 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/pt_BR/
2018-08-04 03:48:09 +02:00
Curtis Gedak 9672d3efc7 Adds: automated script to build rpm packages
This script was based on the steps contained in the following two
guides:

Package Manuskript for Linux with rpm  --> .rpm
https://github.com/olivierkes/manuskript/wiki/Package-Manuskript-for-Linux-with-rpm

Package Manuskript for Linux with dpkg --> .deb
https://github.com/olivierkes/manuskript/wiki/Package-Manuskript-for-Linux-with-dpkg
2018-08-02 08:57:35 -06:00
Curtis Gedak 18fa2bec26 Add .gitignore file patterns for Python PyDev Eclipse IDE 2018-08-02 08:57:35 -06:00
Curtis Gedak dc03321540 Place .gitignore file patterns in alphabetical order 2018-08-02 08:57:35 -06:00
pindarogb 85d053a6c1
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100,0% (798 of 798 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/pt_BR/
2018-08-02 02:07:20 +02:00
pindarogb f731330a5c
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100,0% (798 of 798 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/pt_BR/
2018-08-01 12:48:42 +02:00
ijet 6bee24eb9b
Translated using Weblate (Russian)
Currently translated at 99.4% (794 of 798 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/ru/
2018-08-01 11:43:10 +02:00
pindarogb 568bf7bcb7
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100,0% (798 of 798 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/pt_BR/
2018-08-01 00:33:56 +02:00
Sarasa Kisaragi 81274277c9
Translated using Weblate (Chinese)
Currently translated at 100.0% (798 of 798 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/zh/
2018-07-31 18:35:29 +02:00
ijet c32fd141fa
Added translation using Weblate (Russian) 2018-07-31 07:44:23 +02:00
Sarasa Kisaragi 9c70b2b8ff
Added translation using Weblate (Chinese) 2018-07-30 17:51:15 +02:00
pindarogb 0edc54742f
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (798 of 798 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/pt_BR/
2018-07-30 15:42:32 +02:00