From d8d60faa6b82f59592b0c7e97b9f2130a416fde7 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Sun, 6 Jul 2025 17:09:21 +0200 Subject: [PATCH] Add test document to repo for now --- novelwriter/common.py | 2 +- sample/content/f0260d04a8013.nwd | 23 +++++++++++++++++++++++ sample/nwProject.nwx | 18 +++++++++++------- 3 files changed, 35 insertions(+), 8 deletions(-) create mode 100644 sample/content/f0260d04a8013.nwd diff --git a/novelwriter/common.py b/novelwriter/common.py index e9346a24..6bbdda1e 100644 --- a/novelwriter/common.py +++ b/novelwriter/common.py @@ -498,7 +498,7 @@ def utf16CharMap(text: str) -> list[int]: """Compute mapping from Python string index to QString index. Python strings are always one character per position in either ASCII, UCS-2 or UCS-4. QStrings are in UTF-16, so wide characters - use 2 indices, and thus creates an offset. + use 2 indices, and thus create an offset. """ utf16Map = list(range(0, len(text) + 1)) offset = 0 diff --git a/sample/content/f0260d04a8013.nwd b/sample/content/f0260d04a8013.nwd new file mode 100644 index 00000000..8e970ae4 --- /dev/null +++ b/sample/content/f0260d04a8013.nwd @@ -0,0 +1,23 @@ +%%~name: New Scene +%%~path: 6a2d6d5f4f401/f0260d04a8013 +%%~kind: NOVEL/DOCUMENT +%%~hash: d37d33de7c022106f13239a3c310420653871b95 +%%~date: 2025-07-05 14:35:40/2025-07-06 09:55:14 +### Test πŽ€πŽ˜πŽ—πŽš + +@tag: πŸ˜… | Smiley +@char: Jane, πŸ˜…, John +@story: πŸ˜… + +% Test comment πŽ€πŽ˜πŽ—πŽš with stuff and **bold** text. + +%Note.Consistency: πŸ˜… _lol_ … +%Note.πŽ€πŽ˜πŽ—πŽš: Test + +Text **bold πŽ€πŽ˜πŽ—πŽš** and so on and _so forth_. ~~πŸ˜… does it work?~~ + +Yada yada Anata (πŽ€πŽπŽš) – yada yada – yada yada Athirata (πŽ€πŽ˜πŽ—πŽš) – yada yada. β€œTest dialog here.” + +Normal line + +– tttttt \ No newline at end of file diff --git a/sample/nwProject.nwx b/sample/nwProject.nwx index 812795c4..c36e8df6 100644 --- a/sample/nwProject.nwx +++ b/sample/nwProject.nwx @@ -1,6 +1,6 @@ - - + + Sample Project Jane Smith @@ -9,8 +9,8 @@ en_GB None - 636b6aa9b697b - 636b6aa9b697b + f0260d04a8013 + f0260d04a8013 7031beac91f75 7031beac91f75 @@ -20,7 +20,7 @@ D - New + New Notes Started 1st Draft @@ -36,7 +36,7 @@ Main - + Novel @@ -58,13 +58,17 @@ Chapter One - + Making a Scene Another Scene + + + New Scene + Interlude