A open-source tool for writers www.theologeek.ch/manuskript
Go to file
Curtis Gedak 60cc6c59aa Skip loading directory and file names that begin with a period
See issue #281.

When loading a project that has the setting **Save to one single
file** disabled, Manuskript tries to read all directories and files
under the project directory.

Manuskript expects all files to contain valid unicode characters.

However if a file containing non-unicode characters is read then
Manuskript will crash.

The error message displayed on the console is similar to the
following:

----- begin snippet -----
Traceback (most recent call last):
  File "/home/gedakc/workspace/manuskript.olivierkes/bin/../manuskript/ui/welcome.py", line 134, in loadRecentFile
    self.mw.loadProject(act.data())
  File "/home/gedakc/workspace/manuskript.olivierkes/bin/../manuskript/mainWindow.py", line 566, in loadProject
    self.loadDatas(project)
  File "/home/gedakc/workspace/manuskript.olivierkes/bin/../manuskript/mainWindow.py", line 793, in loadDatas
    errors = loadSave.loadProject(project)
  File "/home/gedakc/workspace/manuskript.olivierkes/bin/../manuskript/loadSave.py", line 66, in loadProject
    v1.loadProject(project, zip=isZip)
  File "/home/gedakc/workspace/manuskript.olivierkes/bin/../manuskript/load_save/version_1.py", line 657, in loadProject
    files[os.path.join(p, f)] = fo.read()
  File "/usr/lib/python3.5/codecs.py", line 321, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 3131: invalid start byte
----- end snippet -----

There are at least two known situations in which files with
non-unicode characters can arise:

A. The project is on Mac OS X and the operating system automatically
   creates a .DS_Store file.

B. The project is under git version control and contains a .git
   subdirectory.

This enhancement prevents the Manuskript crash on project load by
ignoring all directory and file names that start with a period.
2018-01-14 11:51:50 -07:00
bin Adding a bin file 2016-02-06 09:03:12 +01:00
i18n Adds Polish empty translation 2018-01-03 15:44:40 +01:00
icons Adds Format menu to mainWindow ui 2017-11-30 11:11:01 +01:00
libs Removes unused libraries 2017-11-18 20:58:17 +01:00
manuskript Skip loading directory and file names that begin with a period 2018-01-14 11:51:50 -07:00
package Updates version number and deb build script. 2017-11-22 22:26:28 +01:00
resources Theme, preview, and eternal logos 2015-06-18 21:41:56 +02:00
sample-projects Creates base classes 2017-11-15 20:34:05 +01:00
.codeclimate.yml Updates codeclimate config file 2016-03-10 16:36:28 +01:00
.gitignore Updates version number and deb build script. 2017-11-22 22:26:28 +01:00
.travis.yml Merge pull request #287 from katafrakt/build-with-xcode7.3 2018-01-03 15:37:38 +01:00
_config.yml Set theme jekyll-theme-cayman 2017-11-23 14:42:07 +01:00
CHANGELOG.md Update CHANGELOG.md 2017-10-31 21:36:50 +01:00
COPYING Adds license and credits 2015-06-18 11:39:45 +02:00
CREDITS Adds license and credits 2015-06-18 11:39:45 +02:00
makefile Slight optimization through delay in Settings Windows 2017-10-19 10:38:32 +02:00
manuskript.spec Fixes spec file to include translation in releases 2016-04-01 11:53:17 +02:00
README.md Update README.md for 0.5.0 release 2017-11-10 12:47:33 -07:00
TODO.t2t Updated todo 2015-07-09 16:22:26 +02:00

Manuskript

Manuskript is an open-source tool for writers.

Manuskript runs on on GNU/Linux, Mac OS X, and Windows.

Main view

Features

Manuskript provides a rich environment to help writers create their first draft and then further refine and edit their masterpiece.
With Manuskript you can:

Additionally Manuskript can help in many more ways with a spell checker, markdown highlighter, frequency analyzer, and automatic save in open and plain text file format.

Download

Download and install Manuskript today.

HowTo's

See the Wiki for more detailed instructions on how to install and use Manuskript.

Contribute

You can help improve Manuskript by reporting issues, writing wiki documentation, and translating to other languages. See also Manuskript Contribute page.

Manuskript is written in Python3 and PyQt5.

Free Software

Manuskript is Free Software.
You have the freedom to run, copy, distribute, study, change and improve the software.
Manuskript is distributed under the GNU General Public License version 3 or (at your option) any later version.