3.8. 將命名方案從一個(gè)片段復(fù)制到另一個(gè)片段(OLEX2使用手冊(cè))
原文如下:
Copy naming scheme from one fragment to another
This section describes how to transfer labelling scheme from one fragment to another for consistent labelling. Note that if the '-i' option was used for the matching; it also should be used for the naming.
An atom of the fragment with the original naming scheme and an atom of the fragment to which the naming scheme to be transferred should be selected, then the following command have to be typed:
>>match -n=mask
If the mask starts from '$' or '-' a special action is taken. The '$' character instructs the procedure to replace the give number of characters after the '$' in atom labels with the characters, for example:
>>match -n=$2
will replace labels like C101, Cu10, C10a to C201, C20a and Cu20.
The '-' instructs the procedure to replace the ending chars of the labels with the give characters, for example:
>>match -n=-b
will replace labels like C101, Cu10, C10a to C10b, C10b and Cu1b.
Any other values of 'mask' are simply added to the labels, like
>>match -n=a
will replace labels like C101, Cu10, C10a to C201a, C10a and Cu10a.
Note that the labels may become invalid for the use with some programs and will be trimmed/changed on the next file input/output operation.
Atom name suffix can be changed by the following command:
>>name [atoms] -s=[suffix]
if no atom names provided, suffix of all atoms will be changed to the provided one or removed (if no value is provide for the '-s' option). The suffix here is assumed the ending of the atom name following the atom symbol or any number, e.g. for C12a, suffix is 'a', for C12 the suffix is empty and for Cz the suffix is 'z'
譯文如下:
3.8. 將命名方案從一個(gè)片段復(fù)制到另一個(gè)片段
本節(jié)介紹如何將命名方案從一個(gè)片段轉(zhuǎn)移到另一個(gè)片段以實(shí)現(xiàn)一致的編號(hào)標(biāo)簽。請(qǐng)注意,若“-i”選項(xiàng)用于進(jìn)行匹配,則還應(yīng)將其用于命名。
應(yīng)當(dāng)選擇具有原始命名方案的片段的一個(gè)原子以及將被轉(zhuǎn)移命名方案的片段的一個(gè)原子,然后需要鍵入以下命令:
>>match -n=mask
若mask從'$'或'-'開(kāi)始,則執(zhí)行特殊操作。'$'字符指示程序用字符替換原子標(biāo)簽中'$'后面的給定數(shù)值,例如:
>>match -n=$2
將使得諸如C101、Cu10、C10a的標(biāo)簽替換為C201、Cu20、C20a。
'-'指示程序用給定字符替換標(biāo)簽的結(jié)束字符,例如:
>>match -n=-b
將使得諸如C101、Cu10、C10a的標(biāo)簽替換為C10b、Cu1b、C10b。
'mask'的任意其余值僅將其簡(jiǎn)單添加至標(biāo)簽中,例如:
>>match -n=a
將使得諸如C101、Cu10、C10a的標(biāo)簽替換為C101a、Cu10a、C10aa。
請(qǐng)注意,對(duì)于某些程序,標(biāo)簽可能會(huì)變得無(wú)效(例如原子名稱超過(guò)四個(gè)字符),并將在下一次文件輸入/輸出操作時(shí)進(jìn)行修剪/更改。
原子標(biāo)簽后綴可通過(guò)以下指令更改:
>>name [atoms] -s=[suffix]
若未提供原子名稱,則所有原子的后綴都將被更改或移除(若'-s'選項(xiàng)未提供參數(shù))。此處后綴假定為原子符號(hào)或任何數(shù)字后面的原子名稱的結(jié)尾,即,對(duì)于C12a,后綴為'a',對(duì)于C12,無(wú)后綴,對(duì)于Cz,后綴為'z'。
本文輔助視頻如下:
3.8-將命名方案從一個(gè)片段復(fù)制到另一個(gè)片段
https://www.bilibili.com/video/BV19f4y1z7hL
公眾號(hào)文章鏈接:
https://mp.weixin.qq.com/s?__biz=MzU0NjkzMTM1MQ==&mid=2247485350&idx=3&sn=1af006d4727eb50a081c9c8a85c5a867&chksm=fb57505ecc20d9481417cb237960b86edb403baf650124d2263ed04a628b01994572f650e871&token=1126004319&lang=zh_CN#rd
