Jump to content

Word and Character Count When Using Custom Fields


Recommended Posts

In the previous Beta Custom Fields were excluded from the Word Count until the Fields were expanded, in the latest Beta they are now included in the Word Count when not expanded. I'm unsure if this change is by design as it's not mentioned in the 'bug fix' list if it was ever considered to be a bug.

However, when looking at both the Character Count With and Without Spaces, Custom Fields are treated as a single character when unexpanded, is this the expectation?

Affinity Designer 2.5.5 | Affinity Photo 2.5.5 | Affinity Publisher 2.5.5
Affinity Designer Beta 2.6.0.2861 | Affinity Photo Beta 2.6.0.2861 | Affinity Publisher Beta 2.6.0.2861

MacBook Pro M3 Max, 36 GB Unified Memory, macOS Sonoma 14.6.1, Magic Mouse
HP ENVY x360, 8 GB RAM, AMD Ryzen 5 2500U, Windows 10 Home, Logitech Mouse

Link to comment
Share on other sites

It was changed in 2.2 1931: "Fields are not being included in the word count (Fields now count 1 word)"

A field is counted as one word or one character, regardless of the number of words or characters. It's not ideal but it's better than it was before which was zero.

This is the thread we were talking about it in before:

 

Link to comment
Share on other sites

One thing I have noticed is that on text insertion, e.g., using filler text, the initial paragraph count is always one below the actual paragraph count, though the paragraph count is corrected when the cursor is clicked in the text frame...

Affinity Designer 2.5.5 | Affinity Photo 2.5.5 | Affinity Publisher 2.5.5
Affinity Designer Beta 2.6.0.2861 | Affinity Photo Beta 2.6.0.2861 | Affinity Publisher Beta 2.6.0.2861

MacBook Pro M3 Max, 36 GB Unified Memory, macOS Sonoma 14.6.1, Magic Mouse
HP ENVY x360, 8 GB RAM, AMD Ryzen 5 2500U, Windows 10 Home, Logitech Mouse

Link to comment
Share on other sites

6 minutes ago, Hangman said:

One thing I have noticed is that on text insertion, e.g., using filler text, the initial paragraph count is always one below the actual paragraph count, though the paragraph count is corrected when the cursor is clicked in the text frame...

I see that on Windows, too. It's not new in the beta.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Link to comment
Share on other sites

1 minute ago, walt.farrell said:

I see that on Windows, too. It's not new in the beta.

It was more just a general observation following on from the word count topic but good to know you see the same on Windows...

Affinity Designer 2.5.5 | Affinity Photo 2.5.5 | Affinity Publisher 2.5.5
Affinity Designer Beta 2.6.0.2861 | Affinity Photo Beta 2.6.0.2861 | Affinity Publisher Beta 2.6.0.2861

MacBook Pro M3 Max, 36 GB Unified Memory, macOS Sonoma 14.6.1, Magic Mouse
HP ENVY x360, 8 GB RAM, AMD Ryzen 5 2500U, Windows 10 Home, Logitech Mouse

Link to comment
Share on other sites

2 hours ago, Hangman said:

the initial paragraph count is always one below the actual paragraph count […]

I have seen another strange thing in the line count (with AffPub 2.1.1) but it was one above, probably due to a control character being counted as a line?

 

 

Affinity Suite 2.5 – Monterey 12.7.5 – MacBookPro 14" 2021 M1 Pro 16Go/1To

I apologise for any approximations in my English. It is not my mother tongue.

Link to comment
Share on other sites

16 hours ago, Oufti said:

I have seen another strange thing in the line count (with AffPub 2.1.1) but it was one above, probably due to a control character being counted as a line?

I believe that is correct.

  • When you first draw a text frame it has 0 characters, 0 words, 0 lines, 0 paragraphs
  • If you type a character, it has 1 character, 1 word, 1 line, 1 paragraph
  • If you press Return, it has 1 character, 1 word, 2 lines, 2 paragraphs

The paragraph mark is for the start of a new paragraph, not the end of the paragraph on which it's shown, so selecting it selects the start of the next line.

I tested it out and the only thing I found that was odd was:

  • When you first draw a text frame it has 0 characters, 0 words, 0 lines, 0 paragraphs
  • If you press Return, it has 0 characters, 0 words, 2 lines, 1 paragraph

I think that this might be incorrect but it really doesn't matter, nobody cares about word count in a text frame that has nothing but one carriage return.

Link to comment
Share on other sites

1 hour ago, MikeTO said:

I believe that is correct.

  • When you first draw a text frame it has 0 characters, 0 words, 0 lines, 0 paragraphs
  • If you type a character, it has 1 character, 1 word, 1 line, 1 paragraph
  • If you press Return, it has 1 character, 1 word, 2 lines, 2 paragraphs

This is not what I observe when I select all: 

PNG50-Capturedcran2023-08-1817_37_37.png.d9b5f177c71e387f7572af98d9f4d8ee.png

There is no return and saying we have two lines on this capture seems contrary to common sense (thus incorrect in my opinion, whatever the underlying explanation). 

 

— After some more testing, counting lines is definitely unreliable because of this § end of story mark (the same for a ¶ paragraph mark) counting an extra line: 

PNG50-Capturedcran2023-08-1817_50_09.png.f370bbe28cec1ac1272b0dbf2e13a66c.pngPNG50-Capturedcran2023-08-1817_50_34.png.1b73e1d69b665e703a2414ea7d7f6105.png

This is also somewhat related to the way I select a line (triple click or mouse drag or shift-arrow). Some more investigation will be required but I think it's not the topic to discuss that?

 

1 hour ago, MikeTO said:

The paragraph mark is for the start of a new paragraph, not the end of the paragraph on which it's shown, so selecting it selects the start of the next line.

This "feature" could also probably be something to go deeper about in a topic in itself but it's something I struggle with from the beginning (the same seems to apply also in Apple's Pages). — I was used with Word where the end of paragraph mark includes all its settings.  

If you already knew somewhere where this point is detailed (pilcrows indicating the beginning of the next paragraph, not the end) — what it implies when selecting a paragraph by double-click or single click at the end of a paragraph, when deleting a paragraph mark, and so on —, i'd be very grateful if you could give me a link about it. 

Affinity Suite 2.5 – Monterey 12.7.5 – MacBookPro 14" 2021 M1 Pro 16Go/1To

I apologise for any approximations in my English. It is not my mother tongue.

Link to comment
Share on other sites

31 minutes ago, Oufti said:

This is not what I observe when I select all: 

I wasn't selecting, just typing. You're right, there's a difference.

  • When you first draw a text frame it has 0 characters, 0 words, 0 lines, 0 paragraphs
    • Choose Select All and it has 0 characters, 0 words, 2 lines, 0 paragraphs - I think it should be 1 line but if it's 2 then the above should be 1, but that would be weird
  • If you type a character, it has 1 character, 1 word, 1 line, 1 paragraph
    • Choose Select All and it has 1 character, 1 word, 2 lines, 1 paragraph
  • If you deselect and then press Return, it has 1 character, 1 word, 2 lines, 2 paragraphs
    • Choose Select All and it has 1 character, 1 word, 3 lines, 2 paragraph - it doesn't have 3 lines

But this isn't new in the beta, this was a 2.0 feature.

Link to comment
Share on other sites

9 minutes ago, MikeTO said:

But this isn't new in the beta, this was a 2.0 feature.

You are right.

Given your experience here, to discuss this further should I create a bug report or a feedback?

Affinity Suite 2.5 – Monterey 12.7.5 – MacBookPro 14" 2021 M1 Pro 16Go/1To

I apologise for any approximations in my English. It is not my mother tongue.

Link to comment
Share on other sites

On 8/18/2023 at 1:32 PM, Oufti said:

You are right.

Given your experience here, to discuss this further should I create a bug report or a feedback?

I just copied it over to a new thread in the bugs forum.

 

Link to comment
Share on other sites

 

2 hours ago, MikeTO said:

I just copied it over to a new thread in the bugs forum.

Thank you. 

 

On 8/18/2023 at 6:43 PM, Oufti said:

After some more testing, counting lines is definitely unreliable because of this § end of story mark (the same for a ¶ paragraph mark) counting an extra line: 

[…]

This is also somewhat related to the way I select a line (triple click or mouse drag or shift-arrow). Some more investigation will be required but I think it's not the topic to discuss that?

I have posted in your bug report thread the results of my investigations. 

In short, selecting the last character of a line — whatever its nature, character, space, end of paragraph or end of story marks… — counts for two lines. But not always, following the way you select it. 

Affinity Suite 2.5 – Monterey 12.7.5 – MacBookPro 14" 2021 M1 Pro 16Go/1To

I apologise for any approximations in my English. It is not my mother tongue.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.