TexMaker 사전에 사용된 코드의 의미는 무엇입니까?

TexMaker 사전에 사용된 코드의 의미는 무엇입니까?

TexMaker(또는 그에 상응하는 분기:TexStudio )에는 편집기에서 철자 기능을 제공하는 사전 옵션이 있습니다. 그러나 문제에서 언급한 바와 같이TexMaker 사전에 단어를 추가하시겠습니까?, 사전에 추가 단어 및 사용자 정의 단어를 추가할 수 있는 직접적인 방법은 없습니다. 이는 특히 특정 과학이나 기술 분야에서 흔하지 않은 단어로 일하는 사람들에게 중요한 기능입니다. 사전 파일에 추가 단어를 추가하는 유일한 방법은 사전 파일을 편집하는 것입니다(사전 파일은 의 설치 폴더에서 찾을 수 있습니다 TexMaker). 또한 TexMaker표준 OpenOffice( Hunspell,Tim Hoffmann이 언급한) 사전을 사용하는 것 같습니다 .

문제는 이러한 사전의 단어 뒤에 루트 단어의 변형 추가를 건너뛰는 데 도움이 되는 일부 코드가 있다는 것입니다. 예를 들어, 단어의 경우 book가 있습니다 book/SBJGMD. 이러한 코드는 기본 사전(.dic) 파일과 함께 제공되는 접사(.aff) 파일에 정의되어 있는 것으로 보입니다. 그러나 첨부 파일에서는 그 의미에 대한 설명을 찾을 수 없었습니다. 모든 변형을 추가하지 않고 내가 사용할 수 있도록 사전에 추가 단어를 추가하고 싶기 때문에 이 정보가 필요합니다.

첨부 파일에 사용된 코드나 구문에 대한 참조가 있습니까?

답변1

이에 대한 설명을 찾았습니다.웹 페이지. 여기에 설명된 구문의 복사본이 완전성을 위해 아래에 제공됩니다.

Here is an example of how to define one specific suffix borrowed 
from the en_US.aff file used by the OpenOffice org spellchecker

SFX D Y 4
SFX D   y     ied        [^aeiou]y

The first line has 4 fields:

Field
-----
1     SFX - indicates this is a suffix
2     D   - is the name of the character which represents this suffix
3     Y   - indicates it can be combined with prefixes (cross product)
4     4   - indicates that sequence of 4 affix entries are needed to
               properly store the affix information

The remaining lines describe the unique information for the 4 affix
entries that make up this affix.  Each line can be interpreted
as follows: (note fields 1 and 2 are used as a check against line 1 info)

Field
-----
1     SFX         - indicates this is a suffix
2     D           - is the name of the character which represents this affix
3     y           - the string of chars to strip off before adding affix
                         (a 0 here indicates the NULL string)
4     ied         - the string of affix characters to add
                         (a 0 here indicates the NULL string)
5     [^aeiou]y   - the conditions which must be met before the affix
                    can be applied

관련 정보