[sword-devel] Small problem with section headers in an OSIS module

Daniel Owens dhowens at pmbx.net
Sun Nov 30 02:31:07 MST 2008


Chris,

I'm gonna pull this up to the top. The first title for Genesis 1 occurs 
after the chapter element, not before. Here is the text:

<div type="book" osisID="Gen">
<title type="main">SÁNG THẾ</title>
<div type="section"><title>Giới Thiệu</title>
<p>Sách Sáng Thế là sách nói về cuộc sáng tạo vũ trụ, nguồn gốc của loài 
người, tội lỗi, sự đau khổ trên thế giới và cách Đức Chúa Trời đối xử 
với loài người. Sách Sáng Thế có thể được chia thành hai phần chính:</p>
<p>1<hi type="italic">Chương 1-11</hi> Cuộc sáng tạo thế giới và lịch sử 
nhân loại thời cổ đại. Phần Kinh Thánh này nói về thủy tổ loài người, 
A-đam và Ê-va, Ca-in và A-bên, Nô-ê và trận đại hồng thủy, biến cố tháp 
Ba-bên.</p>
<p>2<hi type="italic">Chương 12-50</hi> Lịch sử tổ tiên người Do Thái. 
Quốc tổ của người Do Thái là Áp-ra-ham, gương đức tin và sự tuân phục 
Đức Chúa Trời của ông. Thứ đến là câu chuyện của Y-sác, con trai 
Áp-ra-ham, Gia-cốp (hay Y-sơ-ra-ên), cháu nội Áp-ra-ham và mười hai con 
trai của Gia-cốp tức là mười hai tộc trưởng của mười hai chi tộc 
Y-sơ-ra-ên. Cuộc đời của Giô-sép, một trong mười hai con trai của 
Gia-cốp được ghi nhận; câu chuyện này dẫn đến việc Gia-cốp và gia đình 
xuống sống ở Ai-cập.</p>
<p>Mặc dù sách Sáng Thế nói về cuộc sống của một số người nhưng thực ra 
sách nói về hoạt động của Đức Chúa Trời. Trước hết sách xác nhận rằng 
Đức Chúa Trời sáng tạo vũ trụ và kết thúc với lời hứa rằng Ngài vẫn tiếp 
tục quan tâm đến loài người. Nhân vật chính của sách Sáng Thế là Đức 
Chúa Trời; Ngài xét xử và trừng phạt những kẻ phạm tội, hướng dẫn, giúp 
đỡ dân Ngài. Sách cổ này ghi chép lịch sử đức tin của một dân tộc và 
giúp gìn giữ, duy trì đức tin ấy sống mãi.</p>
</div>
<div type="section">
<title>Bố cục</title>
<list>
<item>1 Cuộc sáng tạo vũ trụ và loài người 1:1-2:25</item>
<item>2 Tội lỗi và sự đau khổ 3:1-24</item>
<item>3 Từ A-đam đến Nô-ê 4:1-5:32</item>
<item>4 Nô-ê và trận đại hồng thủy 6:1-10:32</item>
<item>5 Tháp Ba-bên 11:1-9</item>
<item>6 Từ Sam đến Áp-ra-ham 11:10-32</item>
<item>7 Các tổ phụ Áp-ra-ham, Y-sác, Gia-cốp 12:1-35:29</item>
<item>8 Dòng dõi Ê-sau 35:1-43</item>
<item>9 Giô-sép và các anh em người 37:1-45:28</item>
<item>10 Dân Y-sơ-ra-ên tại Ai-cập 46:1-50:26</item>
</list>
</div>
<chapter sID="Gen.1" osisID="Gen.1"/>
<div type="section">
<title>Sáng Tạo Trời Đất</title>
<p>
<verse sID="Gen.1.1" osisID="Gen.1.1"/>
Ban đầu, Đức Chúa Trời sáng tạo trời đất.
<verse eID="Gen.1.1"/>

Maybe I am missing something, but it seems that the order is as you said 
it should be.

Daniel

Chris Little wrote:
> 
> Daniel Owens wrote:
>> Chris Little wrote:
>>> Tom Cornell wrote:
> 
>> I've had this problem with the VietNVB in the beta repository. Not sure 
>> what was done to make the ESV look so pretty, but I haven't been able to 
>> reliably reproduce it with the NVB myself. Look at Genesis 1.
>> - BT 1.6.5.1 (Sword 1.5.11) displays all headings, but v. 26 has the 
>> verse number on it's own line, just like what you describe. It think 
>> this is unique to BT, though I have seen it in the past in BibleDesktop.
>> - BibleDesktop 1.6 doesn't display any headings as headings in that 
>> chapter, though the heading for v. 26 appears as verse text.
>> - GnomeSword 2.4.0 does fairly well with all the headings, though the 
>> first one is appended to the end of the book introduction.
> 
> I think the appended title is not due the filters/frontend (GS). I think 
> osis2mod has physically appended the first title to the intro section 
> because of what I would class as an encoding error (in the imported 
> OSIS). Looking at the text, the first section and title begin before the 
> Gen.1 chapter marker. I think the importer is acting correctly here by 
> including everything before the first chapter marker within the intro 
> section, and I would guess that if you moved the chapter marker up by 
> two lines, it would render as you desire in GS. As it is, it's not 
> getting the special "pre-verse" treatment.
> 
>> - BPBible misses the first heading but gets the one in v. 26.
>> - Not sure what BibleCS does...
> 
> BibleCS renders everything correctly, which is to say that the v.1 title 
> gets rendered within the intro but the v.26 title is rendered above the 
> v.26 marker, and v.26 itself follows on the same line as the marker.
> 
> Most features like this were developed on/for BibleCS first, so it's not 
> a great surprise to find it working there.
> 
> However, in Matt.1, there are two titles on Matt.1.18, which is 
> confusing something (probably the importer). It's resulting in rendering of:
> (Lu 2:1-7)
> 18
> Câu Chuyện Giáng Sinh Của Chúa Cứu Thế Giê-su
>   Sự giáng sinh của Chúa Cứu Thế Giê-su đã xảy ra như sau: ....
> 
> Here, we would expect, instead, to see the third line (the section 
> title) first, followed by the first line (the parallel section) on its 
> own line, followed by lines 2 and 4 together on a third line.
> 
>>> When I committed a new version of osis2mod 3-4 years ago that did all of 
>>> this (in a way that neither harmed existing nor future data) it was 
>>> roundly rejected and reverted. I'm still convinced that preservation, 
>>> including storing <verse>, is the only solution to certain of our 
>>> problems. And I'm hoping that DM and I can convince the naysayers of the 
>>> merits of that position.
>> I hope you do. Is it a programming or performance issue? Aside from 
>> momentum, what's holding this back? It makes perfect sense to me, and it 
>> would make it easer to go from osis to mod to osis and back to mod with 
>> little lost, I would think.
> 
> I think it was a lack of providing a convincing argument issue and an 
> issue of failing to demonstrate that the new paradigm wouldn't need to 
> break existing data and implementations. I also included an argument 
> that it would provide a different way of providing verse numbers not 
> supported by Sword (outside the KJV versification), which I think 
> distracted from the issue.
> 
> Implementation is easy. Performance difference would be trivial. The 
> greatest issue was simply accepting a second paradigm of OSIS module 
> encoding, which would require that we know somehow whether a module was 
> including <verse> elements or not. But I think we could probably deal 
> with that somehow.
> 
> --Chris
> 
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page

-- 
PMBX license 1502



More information about the sword-devel mailing list