मैंने हाल ही में किसी व्यक्ति के प्रोजेक्ट में क्रैश का कारण एक पंक्ति तक सीमित किया है। दुर्भाग्य से, FRT पुस्तकों के लिए टेम्पलेट लिखते समय किसी ने एक गलती की थी, और इस पंक्ति को शामिल कर दिया गया था:
\rem sorta will sort by \toc1, sortb by \toc2, sortc by \toc3
यह लगभग निश्चित रूप से क्रैश / अपरिभाषित व्यवहार का कारण बनेगा।
अगर आपके पास Front matter है जिसमें वह पंक्ति शामिल है, तो उसे बदलें ताकि इसमें यह लिखा हो:
\rem sorta will sort by toc1 , sortb by toc2 , sortc by toc3
अर्थात, स्लैश हटा दें। अन्यथा आपको क्रैश का अनुभव होगा।
USFM मानक के पहले संस्करण थोड़े अस्पष्ट थे, लेकिन Paratext और USFM-3 मानक \rem को 'इस पंक्ति के बाकी हिस्से को नजरअंदाज करें' के रूप में वर्णित नहीं करते, बल्कि इसे एक अनुच्छेद शैली के रूप में वर्णित करते हैं जो कोई आउटपुट नहीं उत्पन्न करती है।
इसका अर्थ है:
\rem अगले अनुच्छेद मार्कर तक जारी रहता है
\rem को अभी भी अपने भीतर शामिल किसी भी मार्कर को प्रोसेस करना होता है। (वह अगले अनुच्छेद-मार्कर को कैसे पहचानेगा?)
चूंकि \toc1 और उसके साथियों को भी अनुच्छेद मार्कर के रूप में वर्णित किया गया है (हालांकि उन्हें इस रूप में उपयोग नहीं किया जाता है), उन्हें \rem को रद्द करना चाहिए
I’ve just tracked down the cause of a crash on someone’s project to a line Unfortunately there was a think-o when someone was writing the template for FRT books, and this line was included:
\rem sorta will sort by \toc1, sortb by \toc2, sortc by \toc3
This is pretty much guaranteed to cause a crash / undefined behaviour.
If you have a Front matter that includes that line, change it so that it reads:
\rem sorta will sort by toc1 , sortb by toc2 , sortc by toc3
I.e. remove the slashes. Otherwise you will experience crashes.
Earlier versions of the USFM standard were a bit vague, but Paratext and the USFM-3 standard do NOT describe \rem as ‘ignore the rest of this line’, but as a paragraph style that produces no output.
This means:
\rem continues until the next paragraph marker
\rem still has to process any markers it contains. (how else will it spot the next paragraph-marker?).
Since \toc1 and friends are also described as paragraph markers (although not used as such) they should cancel \rem
English से मशीन-अनुवादित मूल दिखाएं