Commit graph

835 commits

Author SHA1 Message Date
Curtis Gedak 0cbf337f09 ========== manuskript-0.8.0 ========== 2018-12-05 11:39:28 -07:00
Curtis Gedak 92b0f016ba Add new language translations to the Settings window 2018-12-05 10:41:33 -07:00
Curtis Gedak 94dd422329 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-12-05 10:36:27 -07:00
Curtis Gedak e99ec4c486 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-12-05 10:34:24 -07:00
Pedro Albuquerque a1c7a6bb06 Manually update pt_PT translation because weblate is not up-to-date
The steps to manually update the translation were:

1. Download and extract manuskript_pt_PT.ts from issue #408
2. Manually add manuskript_pt_PT.ts to git develop branch

See issue #408 and pull request #410
2018-12-05 10:28:01 -07:00
Curtis Gedak 80676a8799 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 update weblate
git checkout develop
git merge weblate/develop
2018-12-05 10:14:25 -07:00
Curtis Gedak 3a793f4869 Merge remote-tracking branch 'weblate/develop' into develop 2018-12-05 10:00:55 -07:00
Curtis Gedak 528ea130ee Remove unimplemented snowflake view mode menu entry
The menu option "View -> Mode -> Snowflake" has not been implemented.
This greyed out / disabled option has caused some confusion for users.
Remove the snowflake menu option to avoid confusion.

Closes issue #419
See also earlier issue #45
2018-11-30 09:42:42 -07:00
Curtis Gedak 07c9ca5c5d Remove support for macOS X El Capitan (10.11) in Travis CI build
The Travis CI builds for macOS X are failing because these now
timeout.  This happens because qt is being built from source instead
of being installed from a bottle.

Note that by default the Travis CI will terminate a build after 10
minutes if no output has been received.  Unfortunately building qt
from source code may take hours.

To address this issue, choose a macOS X version that has a homebrew
bottle for qt [1].

[1] https://formulae.brew.sh/formula/qt

The homebrew project currently lists having a qt bottle for:

  - Mojave (10.14)
  - High Sierra (10.13)
  - Sierra (10.12)

No bottle is listed for macOS El Capitan (10.11)

In order to support as many versions of macOS X as possible, choose
the lowest osx_image value [2] that is currently supported with a
homebrew bottle.

[2] https://docs.travis-ci.com/user/reference/osx#os-x-version

At this time osx_image value xcode8.3 is listed as supporting OS X
10.12.
2018-11-29 13:31:18 -07:00
Curtis Gedak 05c6dee033 Improve Travis CI logging for prepare linux script 2018-11-29 10:34:32 -07:00
Curtis Gedak 5ea37bd192 Remove plot resolution step key bindings Ctrl+Enter and Ctrl+Backspace
Many applications, including Manuskript in the Editor pane, use the
keyboard shortcut 'Ctrl+Backspace' to delete the previous word.
However in the Plot pane Manuskript uses 'Ctrl+Backspace' to delete a
plot resolution step.

Fix this inconsistent behaviour by removing the keyboard shortcuts for
'Ctrl+Enter' and 'Ctrl+Backspace' from the Plot pane.

Closes issue #375
2018-11-26 11:05:46 -07:00
ditokp 18a6472dfd
Translated using Weblate (Indonesian)
Currently translated at 2.1% (17 of 798 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/id/
2018-11-25 14:08:04 +01:00
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