This Help forum is for issues relates to the latest release (1.4.6). For issues related to beta or git version please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here.
  • Page:
  • 1
  • 2

TOPIC: Lists - initial letters

Lists - initial letters 5 years 3 months ago #21

  • kiwi
  • kiwi's Avatar
  • Offline
  • Platinum
  • Posts: 4904
miron

If your fix is to remove the markup <span class="SURN"></span> from around the surname, perhaps you can find an easier solution for yourself by using, rather than removing that tag. Experiment with changing or adding CSS styles to that tag in your theme's stylesheet.

You might, for exmple use it to add the space you seem to need.
.SURN:before { content:" ";}
Nigel

www.our-families.info

Hosted at:
Follow me at:
The administrator has disabled public write access.

Lists - initial letters 5 years 3 months ago #22

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Gold
  • Greetings from Utrecht, Holland
  • Posts: 1432
Talking about that space, according to the gedcom specs the surname is always within slashes and given names can be before or after these slashes. I presume these rules are the same for rtl languages.
But I see an example gedcom snippet with a space embedded in the surname.
Could you try how a name renders you fill with webtrees gui?
stamboom.BertKoor.nl runs on webtrees v1.7.9
The administrator has disabled public write access.

Lists - initial letters 5 years 3 months ago #23

  • miron
  • miron's Avatar
Without my fix, and with Firefox 22, these are the results:
1)GEDCOM:
1 NAME Miron /Ophir/
2 _HEB מירון /אופיר/
Latin:
Miron Ophir
אופירמירון
Hebrew:
מירון אופיר
OphirMiron

2)GEDCOM:
1 NAME Miron / Ophir /
2 _HEB מירון / אופיר /
Latin:
Miron Ophir
אופירמירון
Hebrew:
מירון אופיר
OphirMiron

So even if both the given name and the surname has spaces before and after the name - the display is wrong.
As for the CSS trick - I can try that but I think it's tha span tag itself that breaks the Firefox correct display.
The administrator has disabled public write access.

Lists - initial letters 5 years 3 months ago #24

  • miron
  • miron's Avatar
The CSS trick obviously didn't help, although it iserted the space:
The administrator has disabled public write access.

Lists - initial letters 5 years 3 months ago #25

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Gold
  • Greetings from Utrecht, Holland
  • Posts: 1432
And what happens with this?
1 NAME Miron /Ophir/
2 GIVN Miron
2 SURN Ophir
2 _HEB אופיר /מירון/

Or if it is pronounced as "Ophir Miron" (first the surname, then the given name) then shouldn't it be:
1 NAME /Ophir/ Miron
2 SURN Ophir
2 GIVN Miron
2 _HEB מירון /אופיר/

Funny things are happening when mixing hebrew and latin. The browser doesn't know where the slashes are: before or after.
Better get a bit of help from someone with loads of experience entering Hebrew gedcom data.
stamboom.BertKoor.nl runs on webtrees v1.7.9
The administrator has disabled public write access.

Lists - initial letters 5 years 3 months ago #26

  • miron
  • miron's Avatar
No, the data entry in the GEDCOM is OK. Don't get excited about the slashes position - it looks wrong because of the directional flip, but it is OK.
The problem is, as I said above, with the <span> tag. remove it and everything looks OK.
The administrator has disabled public write access.

Lists - initial letters 5 years 3 months ago #27

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Gold
  • Greetings from Utrecht, Holland
  • Posts: 1432
Can you have a look here:
stamboom.bertkoor.nl/individual.php?pid=I241&ged=Test

Looks alright in FireFox 5. Your version apparently is too modern ;-)
stamboom.BertKoor.nl runs on webtrees v1.7.9
The administrator has disabled public write access.

Lists - initial letters 5 years 3 months ago #28

  • fisharebest
  • fisharebest's Avatar
  • Online
  • Administrator
  • Posts: 10445
The problem is, as I said above, with the <span> tag. remove it and everything looks OK.

I'm not convinced.

I created a test gedcom, and, I gradually removed all extraneous markup until just the problem remained.

I ended up with this:
<!DOCTYPE html>
<html lang="he" dir="rtl">
	<head><meta charset="UTF-8"><title>test</title></head>
	<body>
		<span dir="auto">מירון <span>אופיר</span></span>
		<span id="eek"> <span dir="auto">Miron <span>Ophir</span></span></span>
	</body>
</html>

Chrome displays this OK. Firefox doesn't.

I've marked one of the spans with id="eek". Remove this and firefox works. Note, this is NOT the surname span that you were removing.

It seems that this higher-level element is breaking firefox.

I think this is a bug in Firefox, but I'd need to re-read the unicode-bidi algorithm to be certain.

The official spec is here www.unicode.org/reports/tr9/ although a more readable version is here www.w3.org/International/articles/inline-bidi-markup/
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
Last Edit: 5 years 3 months ago by fisharebest. Reason: missing link
The administrator has disabled public write access.
Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 

Lists - initial letters 5 years 3 months ago #29

  • fisharebest
  • fisharebest's Avatar
  • Online
  • Administrator
  • Posts: 10445
A little more reading of the specs, plus this example:
<!DOCTYPE html>
<html lang="he" dir="rtl">
	<head><meta charset="UTF-8"><title>test</title></head>
	<body>
		<span dir="auto" style="color:blue;">Greg <span>Roach</span></span>
		<span id="eek"> <span dir="auto" style="color:green;">Greg <span>Roach</span></span></span>
	</body>
</html>

It seems that FF 22 doesn't yet have support for dir="auto"

bugzilla.mozilla.org/show_bug.cgi?id=548206 seems to confirm this, as there are still a number of dependent bugs listed, that are preventing this one from being released.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
Last Edit: 5 years 3 months ago by fisharebest.
The administrator has disabled public write access.

Lists - initial letters 5 years 3 months ago #30

  • miron
  • miron's Avatar
You are right Greg, but this does not negate my suggested fix. Remove the inner span, and it will display ok:
<span id="eek"> <span dir="auto" translate="no">Miron Ophir</span></span>
I agree that this is a Firefox issue and I really hope they fix it, but for the meantime it is the easiest fix I could find.
I'm also willing to consider adding mozila.css to my theme and to the browser detection code, but I don't think there is any CSS fix for this...
The administrator has disabled public write access.

Lists - initial letters 5 years 3 months ago #31

  • fisharebest
  • fisharebest's Avatar
  • Online
  • Administrator
  • Posts: 10445
The inner span is used by many sites to format surnames as either all-capitals or small-capitals.

Removing it will annoy these people.

There are plenty of other mixed ltr/rtl things that only work in Chrome. Our stated policy is to code to standards, and wait for browsers to support them.

FF releases are every 6 weeks. My guess is that there will be two more FF releases before the next webtrees release.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: makitso
Powered by Kunena Forum