! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Dictionary plugin drops first line of each definition
Status:
CLOSED: FIXED
Product:
Xfce4-dict
Component:
General

Comments

Description Steve Randall 2008-10-21 14:02:25 CEST
Dictionary plugin display (version 0.4.1 and earlier) apparently drops the first line of each definition it receives.

Telnet to dict.org 2628

250 ok
define * bug
150 6 definitions retrieved
151 "Bug" gcide "The Collaborative International Dictionary of English v.0.48"
Bug \Bug\ (b[u^]g), n. [OE. bugge, fr. W. bwg, bwgan, hobgoblin,
   scarecrow, bugbear. Cf. {Bogey}, {Boggle}.]
   1. A bugbear; anything which terrifies. [Obs.]
...

Display in dictionary plugin

gcide "The Collaborative International Dictionary of English v.0.48"
scarecrow, bugbear. Cf. {Bogey}, {Boggle}.]
1. A bugbear; anything which terrifies. [Obs.]
...

The line beginning with 'Bug' is missing.

I see that leading spaces are suppressed also, but I don't know if that's intentional.
Comment 1 Enrico Tröger editbugs 2008-10-21 14:37:24 CEST
Yes.
This first line was dropped intentionally since most dictionaries just repeat the searched/found term in this line and so I assumed it isn't necessary to print.

'gcide' is one of the dictionaries giving usual information in this line. Same for 'moby-thes'.

Anyway, since I noticed this also last week, this is already fixed in current SVN version.
Same goes for the dropped indentation.
Comment 2 Steve Randall 2008-10-21 15:31:33 CEST
I built from SVN and it looks great. Thanks! (Jargon File is another, BTW, where the first line is critical.)
Comment 3 Enrico Tröger editbugs 2008-10-21 16:45:44 CEST
Current SVN version has still bugs :).
The new feature to highlight links (cross-references) doesn't work currently, I'll fix it this week.

And yes, maybe there are more dictionaries that use the first line than I expected. Or in other words, I probably tested in the past just with a few dictionaries which didn't use it :).

Bug #4509

Reported by:
Steve Randall
Reported on: 2008-10-21
Last modified on: 2009-07-15

People

Assignee:
Enrico Tröger
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information