timotejs
-
Posts
7 -
Joined
-
Last visited
Posts posted by timotejs
-
-
Yep basically I have 3 kinds of situations when working with such regex replacements:
1. skipping some occurences
2. affinity publisher crashing
3. maybe worst of all (because it is silent failure) duplicating some occurences. Example:
<chapter>Chapter 1</chapter> <chapter>Chapter 2</chapter> <chapter>Chapter 3</chapter> <chapter>Chapter 4</chapter> <chapter>Chapter 5</chapter>
becoming (after using Replace All button):
Chapter 1 Chapter 2 Chapter 2 Chapter 3 Chapter 4
This is even more dangerous for me as it can be easy to miss mistake if you are running the regex on longer texts.
-
Hi,
i just tried to reproduce the issues on completely new file. Just create 2 column master and paste the same text in. I am able to reproduce the issue 3 and 1. So it doesn't seem to be related to the file I am opening.
-
Regex Search and Replace Skipping occurrences randomly
Best illustrated by attached Video. I have seen Publisher also randomly crashing when working with regex Search and Replace. Hopefully you can find the problem as it is essential feature for me as I often have to edit huge texts where this kind of 'automation' is necessary.
Thanks for help/solution.
EDIT: I just found how to crash Publisher when working with RegEx in reproducible way. See the second video attached with name "ReproducibleCrash.flv". If I repeat steps in that video Publisher will crash every time.
And EDIT2: Bug when using Replace All instead of replacing one by one. This way somehow Chapter 2 gets duplicated. As input i have Chapters 1 - 19. But after using regex replace I endup with = [Chapter 1, Chapter 2, Chapter 2, Chapter 3-18]. As always I am attaching video to show the problem which is also reproducible.
-
Hmmm I am investigating the Search and replace route. And so far it seems to be working. It even supports RegEx in what by trial/error seems to be Ruby like syntax. Therefore I can export my text with my own tags e.g. "<make_this_book_paragraph_style>Name of Book<\>" and then search with RegEx
In Find text box (the cog wheel icon has RegEx option in the drop down): <make_this_book_paragraph_style>(.+)<\\> Then in 'replace with': $1 and in cog wheel for 'replace with' there is option to apply style..... That correctly applies style and removes my custom tags :) (as i mentioned i can format my text as i want as i have it in database and I can program)
I will play with it a bit further but it seems I can use Affinity indeed with semi-automatic text import
By another words... Thanks to nice regex support in Find And Replace I can basically create my own "format" for import
Hopefully i will not hit some dead end as i would love to move all my workflow to Affinity
-
Well what i need is a way to import text with some formatting.... subscript, styles for paragraph so i do not have to go trough entire book and apply manually.
as per format i can modify my data as needed (i can program) the XMLlike thing in my original post is just an sample
-
Dear Affinity/Serif,
I am longer time owner of Affinity Photo and Designer and now I bought Publisher as well to try it out. However I found an problem which currently makes it difficult to me to move to it.
Description:
I have a bible with all the verses in database. With my current software I created small program which automatically marks everything: Chapter name with "Chapter" paragraph style, marks verse numbering as subscript, adds tab between subscript number and actual verse text, book names as "Book name" paragraph style. Therefore I am able to import entire text automatically (without manually going to every single verse and one by one doing it myself).
I opened the file generated from publisher in editor and I see it is binary format... therefore i do not know how to add text to it myself.
Is there any feature which allows me to programmatically add big texts? If so how? I am able to modify my generator to produce any output as needed. But i do not know currently any way to do it. Is there some text import format? Example:
assuming affinity-document-style-chapter and affinity-document-style-01 are already created in my affinity document. Can i import something like:
<p style="affinity-document-style-chapter">Chapter name 1</p>
<p style="affinity-document-style-01"><subsript>1.</subscript>test of the verse</p>
...
Thank you for help and hopefully you can understand what i mean (as english is not my native language).
[Implemented] Data merge
in Feedback for Affinity Publisher V1 on Desktop
Posted
Another +1 for data merge. IMHO absolutely essential feature for Publisher and I would actually love if Designer can do that as well.
Absolutely amazing would be also option to do it from script. E.g. run publisher similar like following `Publisher.exe -input my_publisher_file -output data_merged.pdf -data datafile.csv`. This way the processes can be hugely automated.