60cc6c59aa
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. |
||
---|---|---|
bin | ||
i18n | ||
icons | ||
libs | ||
manuskript | ||
package | ||
resources | ||
sample-projects | ||
.codeclimate.yml | ||
.gitignore | ||
.travis.yml | ||
_config.yml | ||
CHANGELOG.md | ||
COPYING | ||
CREDITS | ||
makefile | ||
manuskript.spec | ||
README.md | ||
TODO.t2t |
Manuskript
Manuskript is an open-source tool for writers.
Manuskript runs on on GNU/Linux, Mac OS X, and Windows.
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:
- Grow your premise from one sentence, to a paragraph, to a full summary
- Create characters
- Conceive plots
- Construct outlines (Outline mode and/or Index cards)
- Write with focus (Distraction free mode)
- Build worlds
- Track items
- Edit and re-organize chapters and scenes
- View Story line
- Compose with fiction or non-fiction templates and writing modes
- Export to HTML, ePub, OpenDocument, DocX, PDF, and more
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.