-
Posts
908 -
Joined
Posts posted by Pyanepsion
-
-
Hello, @Eisbar,
If your note uses a format or style, simply replace the format or style with your sequence:
-
Note:
22 hours ago, walt.farrell said:Find: (\s(?=(:|»|%)))|(«)\s
Replace: (?1<nnbsp>:\2<nnbsp>)
With the sentence:
Il lui dit : « je sais. C’est 15 %. ».
The result is incorrect because the ‘«‘ character has been deleted. This gives:
Il lui dit<nnbsp>: <nnbsp>je sais. C’est 15<nnbsp>%.<nnbsp>».
21 hours ago, Andreas CH said:Find: (\s(?=(:|»|%)))|(?<=«)\s
Replace: (?1<nnbsp>:\2<nnbsp>)
The result is correct:
Il lui dit<nnbsp>: «<nnbsp>je sais. C’est 15<nnbsp>%.<nnbsp>».Explanations:
These two examples are interesting because they help to understand the difference between (»)\s and (»?<=)\s.
The error in the first replacement formula lies in the use of the positive lookbehind condition (?<=")\s. This condition looks for a white space preceded by a ‘«‘ character. If this condition is true, the white space will be replaced by <nnbsp>.
"Positive lookbehind" is a term that describes a technique used in regular expressions to look for a match that immediately precedes the current position in the string without consuming those characters in the match. In other words, it checks whether a certain pattern exists immediately before the current position in the text, but without including that pattern in the match.
However, in the first formula, there is a syntactic error that makes the lookbehind condition invalid. It lacks a ‘?‘ to specify that the condition is a positive lookbehind. The condition must therefore be (?<=")to be valid.
The absence of a ‘?‘ means that the condition is not a positive lookbehind and has no effect on the string. Therefore, the ‘«‘ character is not found and is not included in the final result, causing the character to be deleted.
-
6 hours ago, lacerto said:
These kinds of changes could easily be applied in a text editor like Word or LibreOffice Writer using macros, before importing text.
It is not a very good idea to take text directly from Word or worse from Write. A text editor is too limited compared to a DTP program and therefore gives a poor assessment of the work to be done. It also contains errors that will be difficult to detect during DTP and will therefore waste a lot of time. It is generally better to use a a word processor as a draft and then run the whole text through a text editor to eliminate artefacts.
That said, good DTP will often alter the text slightly, to make it longer, shorter, or just better.
Having a tool that does all the necessary replacements in one process will save a lot of time.
5 hours ago, laurent32 said:We don’t have <nnbsp> in the pull down, we only have access to <nbsp>
To use the ‘Narrow no-break space’ character (U+202F) in Affinity Publisher, follow these steps:
- Write ‘U+202F’ in the frame text.
- Select ‘U+202F’.
- Press the ‘Alt +U’ (Windows) or ‘Cmd +U’ (Mac) keys to transform it into a ‘Narrow no-break space’ character.
- Copy the resulting character.
- Paste the character into your formula.
It would be much better to be able to select <nnbsp> directly in Affinity’s Regex routines, and even better to be able to enter Unicode codes.
-
@walt.farrell, What search and replace routines do you use in Notepad++?
-
Unfixed bug on Affinity Publisher v2.0.4.1701.
-
@laurent32, Here is a step-by-step explanation to help understand this regex formula.
Search for: \s(?=(:|»|%)) Replacement: <nnbsp>
The regex formula is used to search and replace characters in a text string. Here is a step-by-step explanation of this formula:
-
Search for:
- \s stands for ‘space’. It looks for a space in the text.
- (?=(:|"|%)) is a ‘positive look ahead’. It looks at what follows the space and checks if it is one of the characters (:), (;), (%).
- If a space is found and the following characters match one of the specified characters, the replacement of this space will be performed.
-
Replacement:
- <nnbsp> defines the replacement that will be performed. In this case, the space will be replaced with the character ‘narrow no-break space’ (<nnbsp>).
End result:
The sentence ‘Il lui dit : « je sais. C’est 15 %. ».’ will be changed to ‘Il lui dit<nnbsp>: « je sais. C’est 15<nnbsp>%.<nnbsp>».’.
-
Search for:
-
19 hours ago, walt.farrell said:
I would quibble that that is a right-pointing mark (though perhaps it appears at the left of a string that is quoted?)
Yes, I had reversed the names of left-pointing double angle quotation mark («) and right-pointing double angle quotation mark (») in the English translation. That is corrected.
The important thing here is:
-
either to find a solution for the points raised in search and replace:
- combine several Regex actions into one,
- use \u+ for Unicode variables such as \u+202f,
- use variables for constants such as <nnbsp>,
- be able to save and load Regex scripts).
- or suggest features to improve the use of Regex in the Affinity suite.
-
either to find a solution for the points raised in search and replace:
-
Hello everyone,
I would like to create a Regex routine that replaces the offending spaces with a narrow no-break space <nbsp> (U+202F) in one pass in one routine instead of two.
Routine 1. Replace all erroneous spaces before colon (:), right-pointing double angle quotation mark (»), percent sign (%) with a narrow no-break space
Search for: \s(?=(:|»|%)) Replacement: <nnbsp>
Routine 2. Replace erroneous spaces after left-pointing double angle quotation mark («) with a narrow no-break space <NNBSP> (U+202F).
Search for: («)\s Replacement: \1<nnbsp>
Is this possible?
Is it possible to insert a unicode value into Regex formulas such as \u+202f, or to indicate a variable such as <nnbsp> that appears in the occurrence display?
Or, is it necessary to paste a narrow non-breaking space <nnbsp> (obtained by U+202F from the text)?
Thank you for your explanations.
-
Here is what I found:
Problem:
Pinned block jumps abnormally to the top when moved with the mouse on the same line as or above the pin.
Environment:
File opened in version 2.0.4.1701 and 2.0.3.1670 on Windows 11, the attachment is a linked PDF file (missing). The behaviour is identical (here) with a JPEG image.
Observations:
The PDF block contains a child rectangle. Is it a remnant of an older version?
The block is positioned correctly when moved with the keyboard, but jumps to the top when clicked again with the mouse.
Significance:
This problem can affect the quality of use of the file and can be frustrating for users.
-
Hello, @Viennafil, and welcome to the forum.
How does the preflighting work?
Could you provide an example of a PDF and EPUB file showing the malfunction?
-
The date is correct. The behaviour of the generation routine is not.
It is, of course, important to maintain the consistency of the document by ensuring that the values displayed are clear and consistent. It is best to increase the calendar document by document to avoid contradictions. This ensures that the information is always displayed clearly and consistently.
To reproduce the bug related to the increase of values in the document, the following steps should be taken:
- Load the EPUB and XLSX files which contain 8 identical blocks with 3 fields.
- Observe that the values are displayed 8 times identically. This is the expected behaviour.
- Generate the calendar to see that each of the blocks is increased by one day. We should have obtained 28 sheets from 2 to 29 January, each successive date sheet containing the same date 8 times.
- Observe the contradiction between the two behaviours.
By following these steps, you can reproduce the bug and understand it in more detail.
-
I was looking to make adobes, ideal materials for building green houses.
I came across a DTP software site developed by a small specialist company. Yes, I didn’t quite understand the connection between mixing clay, water and a natural binder, such as chopped straw, to create strong, environmentally friendly bricks.
But anyway, I looked up how to create a document.
By following the help links there, I was able to access other pages, such as the one on using page templates, to master all the features of the software. The URLs of these pages are clearly displayed in the address bar. They can be easily copied for future access. Sharing these links on other websites certainly helps to improve the SEO of this innovative company based in San Jose, California, and to spread the word about their green and sustainable products.
I didn’t understand what their software had to do with dried mud, but hey, you’d think I’d advertise it if it was good for our planet.
😁 -
Integrating an iframe may seem like an easy way to achieve a smooth user experience, but it is important to note that this method has several important drawbacks. Firstly, it can be difficult to reference inline text frames, which can lead to a drop in external visibility and therefore a loss of traffic. In addition, the <iframe> tag is often criticised for greatly increasing the resources needed to use a page, especially when nested. This can slow down page loading and affect the user experience. It is therefore important to weigh up the pros and cons of using an iframe before making a decision. There are more modern and effective alternatives, such as live content solutions, which can be used to enhance the user experience while maintaining good external visibility and performance.
It is also important to note that both internal and external SEO are key elements in improving the visibility of a site on search engines. Internal SEO is the process of optimising a website's pages for search engines to improve their ranking in search results for relevant keywords. External referencing, also known as netlinking, consists of obtaining links to a website from other quality and relevant sites. These links are considered by search engines as "votes" for the content of a site and can have a considerable impact on its ranking. It is therefore important to consider both aspects when setting up an SEO strategy for a website.
-
Bravo, @MikeTO, for this beautiful synthesis.
Perhaps we can make a clarification about the space (French Wikipédia).
A distinction is made between:
-
the cadratine, sometimes called indentation, a blank whose width equals the size of the character used, and is approximately the width of the character M (which in fact has 15/18 cadratine); the cadratine is sometimes assimilated to the width of a double tabular digit 0 (00) although theoretically these occupy four thirds of the cadratine;
-> in English typography, it is normally used to separate two sentences on the same line, and may be used once or more at the head of a paragraph to improve visual separation when paragraphs are not separated by increased line spacing; - the two-thirds cadratine, a number space, which is used to align columns of numbers at a fixed advance; it often also corresponds to the average advance of low letters and punctuation such as the n or the comma;
- the half-space, sometimes called the big space, was the smallest space that could separate two words on the same line. In digital typography, the half-cadratine is the reference value for tabular numbers;
- the third cadratine, sometimes called the justifying space, which is used to increase the space separating words in the case of line justification; it often corresponded to the advance of the punctuation mark. It is now obsolete with digital typography, as the interword is designed to be close to a quarter-cadatenation by type designers;
-
the quarter-cadratin, named in the days of the lead fine space in French typography.
-> In digital typography, it is now the reference for the design of the inter-word. So, a fine space in digital typography should therefore often be closer to a fifth of a cadratin or even an eighth of a cadratin. In practice, the French professional extensions are at odds with each other. Some use U+2009, others U+2005; - the fifth of a cadratine, sometimes called a fine space in English typography;
- the sixth of cadratine, which is used to modify the space between words or letters in case of precise line justification; it is now obsolete with digital typography, which allows more precise adjustment of approaches;
- the eighth of cadratin, also called fine space in French typography.
-
the cadratine, sometimes called indentation, a blank whose width equals the size of the character used, and is approximately the width of the character M (which in fact has 15/18 cadratine); the cadratine is sometimes assimilated to the width of a double tabular digit 0 (00) although theoretically these occupy four thirds of the cadratine;
-
There is no doubt that this was not the result of a bug, but rather a confusion on my part. I was misled by the use of the colour blue, which is generally considered in our cultures to be a simple indicator rather than a warning.


It then appears that ‘Hidden overflowing white space (paragraph returns, line breaks)’ and ‘visible overflowing white space which occurs when Hide Overflow is off in the Text Frame panel’ could indeed be considerably improved by using colours more in line with standard colour codes. By changing the blue colour, we could avoid such misunderstandings in the future and significantly improve the user experience.
-
And?
This does not change the fact that this is a major malfunction.
In fact, inline frames are strongly discouraged by all search engines.
-
v. 2.0.4.1701
Hello everyone,
Text frame overflow can cause serious problems when correcting a work. However, some situations have been omitted.
Characters such as the end of a paragraph or the end of a section are not detected, making it difficult to detect the original location of the overflow. Imagine a book with several linked pages, each containing a frame of overflowing text. You would have to go through all the pages to locate the initial error, a tedious and time-consuming task. It is therefore crucial to take into account the text frame overflow to avoid such complications.
To reproduce the text frame overflow malfunction, follow these steps:
- Create a document containing two or more text frames
- Add a paragraph or a section of text at the end of one of the frames (here, yellow)
- Add two line breaks after the added text
- Delete the added text
- Shorten the text frame so that it no longer contains two empty line breaks and end section.
- Link the shortened frame to another text frame (here, grey)
- Check that the linked frame is now overflowing
- Check that this can cause correction problems in a book if it is not detected at its origin (line break and end of section).
These steps will allow you to reproduce the text frame overflow malfunction, which can cause difficulties when correcting a work, especially in detecting the initial location of the overflow.
-
-
I have received direct links to the help on a few occasions, but in any case, the fact that the link does not appear is still a bug.
-
Every time a link in the help is clicked now, or right-clicked, the current URL does not change although the content does. This is something new.
-
Wow! There is quite a difference with the computer versions! The number of digits of thickness after the decimal point is something important.
-
23 hours ago, gcvrsa said:
I see that there hasn’t been a thread about this in about a year, so I would like to mention that Step and Repeat is an essential tool for the kind of design work that I do creating personal organizer products.
Hello, @gcvrsa. Welcome to Affinity.
We are all users of the Affinity suite here, and we all know the features of the product, but we have no idea what you are talking about here.
A good understanding of your expectations and disappointments is important to be able to answer!
On another subject, imagine the following dialogue in a doctor’s office:
- Doctor, I didn’t enjoy my dinner last night.
- Okay! What did you eat?
- You know what I ate. It’s a dinner!
- I know what a dinner is, but what did you eat last night?
- That’s my private life. What I’m asking you to do is to cure me.
- What are the symptoms?
- Are you doing this on purpose or what? I told you it’s my private life.
Etc.
To understand your suggestion, a screen copy or better a video, and explanations are necessary.
-
Hello everyone.
There is a bug in the online help interface.
If you write the Google sequence:
Aide Affinity dictionnaireIt’s OK. You get the link:
https://affinity.help/publisher/fr.lproj/index.html?page=pages/Text/hyphenationInstalling.html?title=Installer%20des%20dictionnaires%20de%20c%C3%A9surebut if you click on one of the internal links in the Affinity Help, for example on this page:
CésureYou get the hyphenation help, but the link to the page is not changed.
This situation is of course disastrous for indicating a specific page in the help… And for referencing, let's not talk about it.
-
I said.
On 1/23/2023 at 2:49 PM, Pyanepsion said:If it is a MacOS 10.15 Catalina, it should work unless your computer is even older.
If this Mac computer of 2019 does not meet the criteria for use, it is too old and needs to be updated.



Affinity Publisheur: Index page number separator
in V2 Bugs found on Windows
Posted
Unfixed bug on Affinity Publisher v2.1.0.1706.
I may have some news.
Is there a setting in Affinity Publisher (or a file of preference) where the characters after the comma between two index page numbers are shown?