Scribusoid

Author Topic: How to make vertical alignment by "Numbered List" ?  (Read 797 times)

yichuang驿窗

  • Jr. Member
  • **
  • Posts: 52
  • Karma: 0
  • Scribus User
Re: How to make vertical alignment by "Numbered List" ?
« Reply #15 on: January 13, 2020, 10:07:56 am »
hi yichuang

this lefthand tab is exactly where i define the gap between numbers and text.

utnik

Wow, I know why I can't do it your way. Because of font.
My font is Chinese font, Noto Serif CJK SC, from google. I tried another Chinese font, the same result as goole fonts.
In your way, English font is OK.

yichuang驿窗

  • Jr. Member
  • **
  • Posts: 52
  • Karma: 0
  • Scribus User
Re: How to make vertical alignment by "Numbered List" ?
« Reply #16 on: January 13, 2020, 10:49:08 am »
But, my problem is that, I can not make a good "vertical alignment".
I have to adjust the value of "first line indent" countless times, and, the final value won't be a Integer, like yours, 4mm.
My result would be a value like 4.2mm or 3.9mm etc.
Here's how you do it:
-- The values of  "Left Tab" and  "Left Indent" must be the same (use the "position" input field).
-- Then you must add a tab char (obviously) between the number and the text.

That's it. Cheers
Edit: attaching a screenshot so you can see the tab chars

From your detailed guidance, I think I found the reason: font.

English font:
-- If I choose English font, like Liberation Sans, the result will be exactly the same as you described. It's OK.
Chinese font:
-- If I choose Chinese font, like Noto Serif CJK SC, the result will be another(4&5&6 in screenshot).
-- If I choose Chinese font, like Noto Serif CJK SC, and, modify the "First Line Indent" from -4mm to -6mm, the result will be OK again(1&2&3 in screenshot).
Before the text, all the input were like this: first the number, second the dot, and then a tab stop.

I do not test -5mm or -4.5mm or -4.1mm etc("First Line Indent"), but I think that one Chinese character needs two bytes, not like English, one English letter needs only one byte.
The -4mm of "First Line Indent" can hold one number and one dot and one tab stop in English fonts. But, in Chinese fonts, -4mm of "First Line Indent" can hold only one number and one dot, not another tab stop. If I insert one number and one dot and one tab stop before the text, the result will be like screenshot 4&5&6.

Is that a bug? Maybe not I think. Because what we did is not a real lists function.

BTW,
All of your examples are -4mm("First Line Indent"), Is it a coincidence?

« Last Edit: January 13, 2020, 10:53:21 am by yichuang驿窗 »

jfl

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
  • Scribus User
Re: How to make vertical alignment by "Numbered List" ?
« Reply #17 on: January 13, 2020, 11:47:19 am »
All of your examples are -4mm("First Line Indent"), Is it a coincidence?
I'm not sure why it's significant, but yeah, I guess so.

utnik

  • Hero Member
  • *****
  • Posts: 1366
  • Karma: 14
Re: How to make vertical alignment by "Numbered List" ?
« Reply #18 on: January 13, 2020, 01:26:40 pm »
hi yichuang

could you provide an example (.sla file with the font)?
as i don't really understand, what's going wrong, i would like to play with it…

utnik

yichuang驿窗

  • Jr. Member
  • **
  • Posts: 52
  • Karma: 0
  • Scribus User
Re: How to make vertical alignment by "Numbered List" ?
« Reply #19 on: January 15, 2020, 01:18:49 am »
hi yichuang

could you provide an example (.sla file with the font)?
as i don't really understand, what's going wrong, i would like to play with it…

utnik

Here is the link(with fonts):
https://send.firefox.com/download/0e0cce36c1c97f7c/#ezX6YEx18_ICH297fUUOhQ

jfl

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
  • Scribus User
Re: How to make vertical alignment by "Numbered List" ?
« Reply #20 on: January 15, 2020, 10:56:22 am »
Here is the link(with fonts):
Maybe I'm missing something but I didn't have any problem adapting your styles. See attachments (screenshot plus modified SLA file).

Cheers,
JFL

utnik

  • Hero Member
  • *****
  • Posts: 1366
  • Karma: 14
Re: How to make vertical alignment by "Numbered List" ?
« Reply #21 on: January 15, 2020, 03:10:08 pm »
hi yichuang

i took a look at your file. as 'jfl' already said,  there's no problem with the font or the styles. but if your indent (and lefthand tabulator) doesn't provide the space for your numbers, the text will begin at the next standard tab stop (which is every 1/2" or 12.7mm by default…)

utnik

yichuang驿窗

  • Jr. Member
  • **
  • Posts: 52
  • Karma: 0
  • Scribus User
Re: How to make vertical alignment by "Numbered List" ?
« Reply #22 on: January 15, 2020, 03:13:34 pm »
Here is the link(with fonts):
Maybe I'm missing something but I didn't have any problem adapting your styles. See attachments (screenshot plus modified SLA file).

Cheers,
JFL

Wow!

I downloaded the .sla file you uploaded and open it in my system, it's OK as your screenshot. Why?
I opened my original file, it's still NG, like the screenshot 115.png.

My scribus version is an appimage, version 1.5.5, the same as yours. And, 20190731, svn version:23095; Build ID: C--T-F-C1.15.10-64bit, Ghostscript version:9.26.
Os: Debian Stretch 9.11/ gnome 3.22.2

And yours?


yichuang驿窗

  • Jr. Member
  • **
  • Posts: 52
  • Karma: 0
  • Scribus User
Re: How to make vertical alignment by "Numbered List" ?
« Reply #23 on: January 15, 2020, 03:20:12 pm »
hi yichuang

i took a look at your file. as 'jfl' already said,  there's no problem with the font or the styles. but if your indent (and lefthand tabulator) doesn't provide the space for your numbers, the text will begin at the next standard tab stop (which is every 1/2" or 12.7mm by default…)

utnik

Very strange~
Linux and 1.5.5 svn?

ps:
I tested the original file with 1.5.6 svn, and another test in a virtual machine(debian/stretch 9.11/xfce4) that has never run scribus before, the results are all NG~
« Last Edit: January 15, 2020, 03:45:50 pm by yichuang驿窗 »

utnik

  • Hero Member
  • *****
  • Posts: 1366
  • Karma: 14
Re: How to make vertical alignment by "Numbered List" ?
« Reply #24 on: January 15, 2020, 04:18:18 pm »
hi yichuang

Very strange~
Linux and 1.5.5 svn?

my first test was with macOS and scribus 1.5.6.svn.
but now i did the same with lubuntu and 1.5.5 and everything works as expected.

utnik

jfl

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
  • Scribus User
Re: How to make vertical alignment by "Numbered List" ?
« Reply #25 on: January 16, 2020, 09:59:53 pm »
Very strange~

There's nothing strange. As I said above I adapted your styles, which means the values you had entered were wrong. Compare my version and yours and you'll notice different values.

As far a I can see everything works fine on Scribus' side. The problem is on your side ;) But don't take it personally!

Cheers,
JFL

yichuang驿窗

  • Jr. Member
  • **
  • Posts: 52
  • Karma: 0
  • Scribus User
Re: How to make vertical alignment by "Numbered List" ?
« Reply #26 on: January 18, 2020, 03:48:42 am »
I installed a new virtual machine, ubuntu 18.04, and in this vm I opened my file with scribus 1.5.5svn & 1.5.6svn, the results are all still NG.

For the time being, I want to put this problem aside for a while and then test it later using other people's computers.

If there are new discoveries, I will explain here again.

jfl

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
  • Scribus User
Re: How to make vertical alignment by "Numbered List" ?
« Reply #27 on: January 18, 2020, 07:51:42 am »
I installed a new virtual machine, ubuntu 18.04, and in this vm I opened my file with scribus 1.5.5svn & 1.5.6svn, the results are all still NG.
Why are you wasting your time on virtual machines? Have you read my post above? Your styles were wrong. I fixed them and now all is fine.
« Last Edit: January 18, 2020, 07:54:06 am by jfl »

yichuang驿窗

  • Jr. Member
  • **
  • Posts: 52
  • Karma: 0
  • Scribus User
Re: How to make vertical alignment by "Numbered List" ?
« Reply #28 on: January 24, 2020, 06:34:42 am »
I fixed them and now all is fine.

You modified the "First Line Indent" form 4mm to 6mm, and "Left Indent" form 14mm to 20mm.
Yes, with these values, the styles can work fine.

utnik

  • Hero Member
  • *****
  • Posts: 1366
  • Karma: 14
Re: How to make vertical alignment by "Numbered List" ?
« Reply #29 on: January 24, 2020, 01:04:35 pm »
You modified the "First Line Indent" form 4mm to 6mm, and "Left Indent" form 14mm to 20mm.
Yes, with these values, the styles can work fine.

…and that's the solution!
you can't put a 5mm wide text (number and point) into a 4 mm wide space…

utnik