Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to set the start value of Ordered List (ol) in DITA to an arbitrary integer?

Contributor ,
Jan 10, 2020 Jan 10, 2020

I am using FrameMkaer 2019 and DITA. In some cases, I need to set the start of value of the ordered list to a different value than 1. How can I do that?

TOPICS
Structured
3.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 10, 2020 Jan 10, 2020

Do you have the ability (under DITA) to set the Number > Format in Paragraph Designer?

Here's an entry I'm using in a current project:
Format: N:<n=0>.\t

Although you can use an override to do this (in unstructured FM), I always use dedicated Paragraph tags to do it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 14, 2020 Jan 14, 2020

That would have worked, if I would have used fm file format rather than xml.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 17, 2020 Jan 17, 2020

So I have checked it using fm file format. The WYSIWYG is perfect, as the list starts from the value I set o:<n=22>)\t

But in the pdf the list starts from 1 again!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 17, 2020 Jan 17, 2020

Did you make similar changes in output template as well?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 21, 2020 Jan 21, 2020

Hi Amitoj, you mean if I have changed the edd which is imported to the chapter output template?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 21, 2020 Jan 21, 2020

You can either do in EDD but the easy way would be to do changes in your output template (fm file) similar to what you did for the WYSIWYG  view.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 21, 2020 Jan 21, 2020

maybe I understood you wrong. But the changes I would like to have are local. That is for a specific "ol", I would like to start the list numbering from 22 as an instance but not every time. To do this, in the fm file of that particular case under paragraph designer, I am setting o:<n=22>)\t. The list starts correctly from 22. Now, if I would set this in the template or the EDD, every list would start from 22. Or am I getting it wrong?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 22, 2020 Jan 22, 2020

Ohh, I got your point:

You can do this in the following way :

Steps:

  1. Open your output template
  2. Create a new paragraph style, I created "ol22.num.begin " with numbering property as "o:<n=22>)\t"
  3. Export its Element catalog i.e EDD (Structure->EDD)
  4. Now go to <li > element and edit its context
  5. Add one more context before "{first}<ol"
  6. Something like " {first}<ol[outputclass=”22”] "
     
    image.pngexpand image

     

  7. Now save this Edd and open you output template fm file
  8. Import this element definition into it (File->Import->Element Definition)
  9. Save it and you are good to go for publishing

Let me know how it went for you.

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 22, 2020 Jan 22, 2020

Moving ahead, We would be making it easier for the user to edit EDD by just importing its corresponding CSS with  CSS3.0 support.

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 23, 2020 Jan 23, 2020

Of course the problem here is that the 22 is hardcoded. A useful enhancement would be an autonumber building block that would be based on a particular attribute's value. For example:

 

<$attribute-value[outputclass]>

 

or something like that. I would favor enhancements like this over the ability to import CSS into an EDD.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 23, 2020 Jan 23, 2020

I fully agree with you.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 23, 2020 Jan 23, 2020

@Hadi,

I hope this solves your current problem.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 23, 2020 Jan 23, 2020

Thanks Pnagpal for the details,

this can possibly solve my current problem. The issue is that I have other lists that start from other values. That means I would need to redo this for every list which starts from an integer other than one; although, most of my lists start from one. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 24, 2020 Jan 24, 2020

If most of your list starts with one and only few needs some edting in EDD then it won't take more than few min to edit EDD.

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 24, 2020 Jan 24, 2020

That is true. Out of curiosity, can I edit the EDD to create a new "ol" element, say "oln" that takes any integer value "n" as starting point fro the list?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 23, 2020 Jan 23, 2020

Thanks for the suggestion, We may look into this suggestion in the upcoming release.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 24, 2020 Jan 24, 2020

There are many opportunities to enhance the autonumber feature:

* A building block for picking up a particular attribute value (to solve the original poster's problem).

* A building block to allow padding on autonumbers (for example, leading zeros).

* Allow character format building blocks to be used in autonumber sequences (instead of just a single character format for the entire autonumber).

* Allow soft-returns in autonumbers.

* Allow End of Paragraph autonumbers to appear directly after the paragraph text instead of at the right margin.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 24, 2020 Jan 24, 2020

Good point. Can one of you add a feature request and send it across via tracker.adobe.com.

 

Also please share some of the options that may be helpful for ol22 related request as well. Hopefully we can take it up in an upcoming update.

 

Thanks

Amitoj Singh

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 24, 2020 Jan 24, 2020

Hi Amitoj, I opened an issue (FRMAKER-7784). It is not elaborated though...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 25, 2021 Jan 25, 2021

Hi Amitoj, I noticed that the feature request, I had created a year ago for this case as you recommended, is still open. see FRMAKER-7784 | Tracker (adobe.com) Would it be possible that it would be picked up in some of your next releases as well?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 25, 2021 Jan 25, 2021

Hi Hadidh

 

At this point we have added it in an upcoming update but not the one planned in few months time. Someone from engg team would reach out to you to let you know once they have picked this up.

 

thanks

Amitoj Singh

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 26, 2021 Jan 26, 2021
LATEST

Hi Amitoj, thank you very much.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 24, 2020 Jan 24, 2020

As long as we're going to wish-list general autonumbering:

  • allow character sequences to start anywhere in Unicode space,
    with some means of specifying base (rollover point)
  • or at least allow arbitrary "Custom" character sequences for all ANs,
    as Footnote and Table Footnote do at:
    Format > Document > Numbering: [Table] Footnote: Format: Custom
    with rollover at list exhaustion.

Current FM versions offer an impressive list of localized numbering systems, but it's not exhaustive, and probably can't chase every emerging feature request. A more general solution might make more sense.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines