https://bugs.kde.org/show_bug.cgi?id=421612

            Bug ID: 421612
           Summary: When formatting IDs, removed „small words” still get
                    counted, leading to unexpected results
           Product: KBibTeX
           Version: 0.9.2
          Platform: Manjaro
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: User interface
          Assignee: fisc...@unix-ag.uni-kl.de
          Reporter: nobodyinper...@posteo.de
  Target Milestone: ---

Created attachment 128510
  --> https://bugs.kde.org/attachment.cgi?id=128510&action=edit
could-be-fix for id title word counting

SUMMARY

KBibTeX can automatically format the IDs, a very handy feature. The possibility
to define custom formats is also very useful. However, when removing „small
words” (e.g. in the title), these removed words still get counted, leading to
an unexpected and non-constant amount of words in the final id.

STEPS TO REPRODUCE
1. Add a new ID formatting scheme
2. As only field choose "Title"
3. Choose "First Word" to "Third Word"
4. Enable removing small words
5. Format an entry with title "The very important Title"

(even worse if choosing only "First Word" to "First Word" if one wants the
first sensible word of the title)

OBSERVED RESULT

Id is formatted as "veryimportant"

(Id is formatted as empty string "")

EXPECTED RESULT

Id should be formatted as "veryimportanttitle"

(Id should be formatted as "very")


SOFTWARE/OS VERSIONS

up-to-date Manjaro with KBibTex 0.9.2 from the official repositories

ADDITIONAL INFORMATION

I couldn't compile it myself on the quick, but something along the lines in the
attachment should result in the desired behaviour (only increasing the word
count when a word was really appended), at least for the title.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to