diff --git a/src/mol-script/transpilers/all.ts b/src/mol-script/transpilers/all.ts
index 78b47a9cf14f9339035225ae46756c623400ab50..8e8b7a0d73dec663bd8374caafa3f770ea330a43 100644
--- a/src/mol-script/transpilers/all.ts
+++ b/src/mol-script/transpilers/all.ts
@@ -1,10 +1,10 @@
-/*
+ /*
  * Copyright (c) 2017 MolQL contributors, licensed under MIT, See LICENSE file for more info.
  *
  * @author David Sehnal <david.sehnal@gmail.com>
  */
 
-//import jmol from './jmol/parser'
+import jmol from './jmol/parser'
 //import json from './json/parser'
 //import molQLscript from './molql-script/parser'
 import pymol from './pymol/parser'
@@ -12,5 +12,6 @@ import vmd from './vmd/parser'
 
 export default {
     pymol,
-    vmd
+    vmd,
+    jmol   
 }
diff --git a/src/mol-script/transpilers/jmol/examples.ts b/src/mol-script/transpilers/jmol/examples.ts
new file mode 100644
index 0000000000000000000000000000000000000000..d1169426baca6c6911dacf24c7dd05f52564811e
--- /dev/null
+++ b/src/mol-script/transpilers/jmol/examples.ts
@@ -0,0 +1,26 @@
+/*
+ * Copyright (c) 2017 MolQL contributors, licensed under MIT, See LICENSE file for more info.
+ *
+ * @author Alexander Rose <alexander.rose@weirdbyte.de>
+ * @author David Sehnal <david.sehnal@gmail.com>
+ */
+
+export default [{
+    name: 'Residue 50 or 135',
+    value: '50 or 135'
+}, {
+    name: 'Atoms with no covalent bonds',
+    value: 'bondcount = 0'
+}, {
+    name: 'All 3-10 helices',
+    value: 'substructure = "helix310"'
+}, {
+    name: 'Metal atoms',
+    value: 'metal'
+}, {
+    name: 'Atoms invloved in aromatic bonds',
+    value: 'isAromatic'
+}, {
+    name: 'Pyrimidine residues',
+    value: 'pyrimidine'
+}]
\ No newline at end of file
diff --git a/src/mol-script/transpilers/jmol/keywords.ts b/src/mol-script/transpilers/jmol/keywords.ts
new file mode 100644
index 0000000000000000000000000000000000000000..5bfed1ee7762f014343c8117c425e2c716b67f13
--- /dev/null
+++ b/src/mol-script/transpilers/jmol/keywords.ts
@@ -0,0 +1,515 @@
+/**                                                                                                                                        
+ * Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.                                           
+ * @author Alexander Rose <alexander.rose@weirdbyte.de>                                                                                      * @author Panagiotis Tourlas <panagiot_tourlov@hotmail.com>                                                                                 *
+ * @author Koya Sakuma                                                                                                                       * This module was taken from MolQL and modified in similar manner as pymol and vmd tranpilers.
+**/
+
+
+import { MolScriptBuilder } from '../../../mol-script/language/builder';
+const B = MolScriptBuilder;
+import * as h from '../helper';
+import { KeywordDict } from '../types';
+
+
+function nucleicExpr() {
+  return B.struct.combinator.merge([
+    B.struct.generator.atomGroups({
+      'residue-test': B.core.set.has([
+        B.set(...['G', 'C', 'A', 'T', 'U', 'I', 'DG', 'DC', 'DA', 'DT', 'DU', 'DI', '+G', '+C', '+A', '+T', '+U', '+I']),
+        B.ammp('label_comp_id')
+      ])
+    }),
+    B.struct.filter.pick({
+      0: B.struct.generator.atomGroups({
+        'group-by': B.ammp('residueKey')
+      }),
+      test: B.core.logic.and([
+        B.core.rel.eq([ B.struct.atomSet.atomCount(), 1 ]),
+        B.core.rel.eq([ B.ammp('label_atom_id'), B.atomName('P') ]),
+      ])
+    }),
+    B.struct.filter.pick({
+      0: B.struct.generator.atomGroups({
+        'group-by': B.ammp('residueKey')
+      }),
+      test: B.core.logic.or([
+        B.core.set.isSubset([
+          h.atomNameSet([ "C1'", "C2'", "O3'", "C3'", "C4'", "C5'", "O5'" ]),
+          B.ammpSet('label_atom_id')
+        ]),
+        B.core.set.isSubset([
+          h.atomNameSet([ 'C1*', 'C2*', 'O3*', 'C3*', 'C4*', 'C5*', 'O5*' ]),
+          B.ammpSet('label_atom_id')
+        ])
+      ])
+    })
+  ])
+}
+
+const ResDict = {
+  acidic: ['ASP', 'GLU'],
+  aliphatic: ['ALA', 'GLY', 'ILE', 'LEU', 'VAL'],
+  amino: ['ALA', 'ARG', 'ASN', 'ASP', 'CYS', 'GLN', 'GLU', 'GLY', 'HIS', 'ILE', 'LEU', 'LYS', 'MET', 'PHE', 'PRO', 'SER', 'THR', 'TRP', 'TYR', 'VAL', 'ASX', 'GLX', 'UNK', ],
+  aromatic: ['HIS', 'PHE', 'TRP', 'TYR'],
+  basic: ['ARG', 'HIS', 'LYS'],
+  buried: ['ALA','CYS', 'ILE', 'LEU', 'MET', 'PHE', 'TRP', 'VAL'],
+  cg: ['CYT', 'C', 'GUA', 'G'],
+  cyclic: ['HIS', 'PHE', 'PRO', 'TRP', 'TYR'],
+  hydrophobic: ['ALA', 'GLY', 'ILE', 'LEU', 'MET', 'PHE', 'PRO', 'TRP', 'TYR', 'VAL'],
+  large: ['ARG', 'GLU', 'GLN', 'HIS', 'ILE', 'LEU', 'LYS', 'MET', 'PHE', 'TRP', 'TYR'],
+  medium: ['ASN', 'ASP', 'CYS', 'PRO', 'THR', 'VAL'],
+  small: ['ALA', 'GLY', 'SER'],
+}
+
+export const keywords: KeywordDict = {
+  // general terms
+  all: {
+    '@desc': 'all atoms; same as *',
+    abbr: ['*'],
+    map: () => B.struct.generator.atomGroups()
+  },
+  bonded: {
+    '@desc': 'covalently bonded',
+    map: () => B.struct.generator.atomGroups({
+      'atom-test': B.core.rel.gr([B.struct.atomProperty.core.bondCount({
+        flags: B.struct.type.bondFlags(['covalent', 'metallic', 'sulfide'])
+      }), 0])
+    })
+  },
+  clickable: {
+    '@desc': 'actually visible -- having some visible aspect such as wireframe, spacefill, or a label showing, or the alpha-carbon or phosphorus atom in a biomolecule that is rendered with only cartoon, rocket, or other biomolecule-specific shape.'
+  },
+  connected: {
+    '@desc': 'bonded in any way, including hydrogen bonds',
+    map: () => B.struct.generator.atomGroups({
+      'atom-test': B.core.rel.gr([B.struct.atomProperty.core.bondCount({
+        flags: B.struct.type.bondFlags()
+      }), 0])
+    })
+  },
+  displayed: {
+    '@desc': 'displayed using the display or hide command; not necessarily visible'
+  },
+  hidden: {
+    '@desc': 'hidden using the display or hide command'
+  },
+  none: {
+    '@desc': 'no atoms',
+    map: () => B.struct.generator.empty()
+  },
+  selected: {
+    '@desc': 'atoms that have been selected; defaults to all when a file is first loaded'
+  },
+  thisModel: {
+    '@desc': 'atoms in the current frame set, as defined by frame, model, or animation commands. If more than one model is in this set, "thisModel" refers to all of them, regardless of atom displayed/hidden status.'
+  },
+  visible: {
+    '@desc': 'visible in any way, including PDB residue atoms for which a cartoon or other such rendering makes their group visible, even if they themselves are not visible.'
+  },
+  subset: {
+    '@desc': 'the currently defined subset. Note that if a subset is currently defined, then select/display all is the same as select/display subset, restrict none is the same as restrict not subset. In addition, select not subset selects nothing.'
+  },
+  specialPosition: {
+    '@desc': 'atoms in crystal structures that are at special positions - that is, for which there is more than one operator that leads to them.'
+  },
+  unitcell: {
+    '@desc': 'atoms within the current unitcell, which may be offset. This includes atoms on the faces and at the vertices of the unitcell.'
+  },
+  polyhedra: {
+    '@desc': 'all central atoms for which polyhedra have been created. See also polyhera(n), below. (Jmol 14.4)'
+  },
+  nonmetal: {
+    '@desc': '_H,_He,_B,_C,_N,_O,_F,_Ne,_Si,_P,_S,_Cl,_Ar,_As,_Se,_Br,_Kr,_Te,_I,_Xe,_At,_Rn',
+    map: () => B.struct.generator.atomGroups({
+      'atom-test': B.core.set.has([
+        B.set(...['H','He','B','C','N','O','F','Ne','Si','P','S','Cl','Ar','As','Se','Br','Kr','Te','I','Xe','At','Rn'].map(B.es)),
+        B.acp('elementSymbol')
+      ])
+    })
+  },
+  metal: {
+    '@desc': '!nonmetal',
+    map: () => B.struct.generator.atomGroups({
+      'atom-test': B.core.logic.not([
+        B.core.set.has([
+          B.set(...['H','He','B','C','N','O','F','Ne','Si','P','S','Cl','Ar','As','Se','Br','Kr','Te','I','Xe','At','Rn'].map(B.es)),
+          B.acp('elementSymbol')
+        ])
+      ])
+    })
+  },
+  alkaliMetal: {
+    '@desc': '_Li,_Na,_K,_Rb,_Cs,_Fr',
+    map: () => B.struct.generator.atomGroups({
+      'atom-test': B.core.set.has([
+        B.set(...['Li','Na','K','Rb','Cs','Fr'].map(B.es)),
+        B.acp('elementSymbol')
+      ])
+    })
+  },
+  alkalineEarth: {
+    '@desc': '_Be,_Mg,_Ca,_Sr,_Ba,_Ra',
+    map: () => B.struct.generator.atomGroups({
+      'atom-test': B.core.set.has([
+        B.set(...['Be','Mg','Ca','Sr','Ba','Ra'].map(B.es)),
+        B.acp('elementSymbol')
+      ])
+    })
+  },
+  nobleGas: {
+    '@desc': '_He,_Ne,_Ar,_Kr,_Xe,_Rn',
+    map: () => B.struct.generator.atomGroups({
+      'atom-test': B.core.set.has([
+        B.set(...['He','Ne','Ar','Kr','Xe','Rn'].map(B.es)),
+        B.acp('elementSymbol')
+      ])
+    })
+  },
+  metalloid: {
+    '@desc': '_B,_Si,_Ge,_As,_Sb,_Te',
+    map: () => B.struct.generator.atomGroups({
+      'atom-test': B.core.set.has([
+        B.set(...['B','Si','Ge','As','Sb','Te'].map(B.es)),
+        B.acp('elementSymbol')
+      ])
+    })
+  },
+  transitionMetal: {
+    '@desc': '(includes La and Ac) elemno>=21 and elemno<=30, elemno=57, elemno=89, elemno>=39 and elemno<=48, elemno>=72 and elemno<=80, elemno>=104 and elemno<=112',
+    map: () => B.struct.generator.atomGroups({
+      'atom-test': B.core.logic.or([
+        B.core.rel.inRange([B.acp('atomicNumber'), 21, 30]),
+        B.core.rel.inRange([B.acp('atomicNumber'), 39, 48]),
+        B.core.rel.inRange([B.acp('atomicNumber'), 72, 80]),
+        B.core.rel.inRange([B.acp('atomicNumber'), 104, 112]),
+        B.core.set.has([B.set(57, 89), B.acp('atomicNumber')])
+      ])
+    })
+  },
+  lanthanide: {
+    '@desc': '(does not include La) elemno>57 and elemno<=71',
+    map: () => B.struct.generator.atomGroups({
+      'atom-test': B.core.rel.inRange([B.acp('atomicNumber'), 57, 71])
+    })
+  },
+  actinide: {
+    '@desc': '(does not include Ac) elemno>89 and elemno<=103',
+    map: () => B.struct.generator.atomGroups({
+      'atom-test': B.core.rel.inRange([B.acp('atomicNumber'), 89, 103])
+    })
+  },
+  isaromatic: {
+    '@desc': 'atoms connected with the AROMATIC, AROMATICSINGLE, or AROMATICDOUBLE bond types',
+    map: () => B.struct.generator.atomGroups({
+      'atom-test': B.core.rel.gr([
+        B.struct.atomProperty.core.bondCount({
+          flags: B.struct.type.bondFlags(['aromatic'])
+        }),
+        0
+      ])
+    })
+  },
+
+  carbohydrate: {
+    '@desc': ''
+  },
+  ions: {
+    '@desc': '(specifically the PDB designations "PO4" and "SO4")'
+  },
+  ligand: {
+    '@desc': '(originally "hetero and not solvent"; changed to "!(protein,nucleic,water,UREA)" for Jmol 12.2)'
+  },
+  nucleic: {
+    '@desc': 'any group that (a) has one of the following group names: G, C, A, T, U, I, DG, DC, DA, DT, DU, DI, +G, +C, +A, +T, +U, +I; or (b) can be identified as a group that is only one atom, with name "P"; or (c) has all of the following atoms (prime, \', can replace * here): C1*, C2*, C3*, O3*, C4*, C5*, and O5*.',
+    map: () => nucleicExpr()
+  },
+  purine: {
+    '@desc': 'any nucleic group that (a) has one of the following group names: A, G, I, DA, DG, DI, +A, +G, or +I; or (b) also has atoms N7, C8, and N9.',
+    map: () => B.struct.modifier.intersectBy({
+      0: nucleicExpr(),
+      by: B.struct.combinator.merge([
+        B.struct.generator.atomGroups({
+          'residue-test': B.core.set.has([
+            B.set(...['A', 'G', 'I', 'DA', 'DG', 'DI', '+A', '+G', '+I']),
+            B.ammp('label_comp_id')
+          ])
+        }),
+        B.struct.filter.pick({
+          0: B.struct.generator.atomGroups({
+            'group-by': B.ammp('residueKey')
+          }),
+          test: B.core.set.isSubset([
+            h.atomNameSet([ 'N7', 'C8', 'N9' ]),
+            B.ammpSet('label_atom_id')
+          ])
+        })
+      ])
+    })
+  },
+  pyrimidine: {
+    '@desc': 'any nucleic group that (a) has one of the following group names: C, T, U, DC, DT, DU, +C, +T, +U; or (b) also has atom O2.',
+    map: () => B.struct.modifier.intersectBy({
+      0: nucleicExpr(),
+      by: B.struct.combinator.merge([
+        B.struct.generator.atomGroups({
+          'residue-test': B.core.set.has([
+            B.set(...['C', 'T', 'U', 'DC', 'DT', 'DU', '+C', '+T', '+U']),
+            B.ammp('label_comp_id')
+          ])
+        }),
+        B.struct.filter.pick({
+          0: B.struct.generator.atomGroups({
+            'group-by': B.ammp('residueKey')
+          }),
+          test: B.core.logic.or([
+            B.core.set.has([
+              B.ammpSet('label_atom_id'),
+              B.atomName('O2*')
+            ]),
+            B.core.set.has([
+              B.ammpSet('label_atom_id'),
+              B.atomName("O2'")
+            ])
+          ])
+        })
+      ])
+    })
+  },
+  dna: {
+    '@desc': 'any nucleic group that (a) has one of the following group names: DG, DC, DA, DT, DU, DI, T, +G, +C, +A, +T; or (b) has neither atom O2* or O2\'.',
+    map: () => B.struct.modifier.intersectBy({
+      0: nucleicExpr(),
+      by: B.struct.combinator.merge([
+        B.struct.generator.atomGroups({
+          'residue-test': B.core.set.has([
+            B.set(...['DG', 'DC', 'DA', 'DT', 'DU', 'DI', 'T', '+G', '+C', '+A', '+T']),
+            B.ammp('label_comp_id')
+          ])
+        }),
+        B.struct.filter.pick({
+          0: B.struct.generator.atomGroups({
+            'group-by': B.ammp('residueKey')
+          }),
+          test: B.core.logic.not([
+            B.core.logic.or([
+              B.core.set.has([
+                B.ammpSet('label_atom_id'),
+                B.atomName('O2*')
+              ]),
+              B.core.set.has([
+                B.ammpSet('label_atom_id'),
+                B.atomName("O2'")
+              ])
+            ])
+          ])
+        })
+      ])
+    })
+  },
+  rna: {
+    '@desc': 'any nucleic group that (a) has one of the following group names: G, C, A, U, I, +U, +I; or (b) has atom O2* or O2\'.',
+    map: () => B.struct.modifier.intersectBy({
+      0: nucleicExpr(),
+      by: B.struct.combinator.merge([
+        B.struct.generator.atomGroups({
+          'residue-test': B.core.set.has([
+            B.set(...['G', 'C', 'A', 'U', 'I', '+U', '+I']),
+            B.ammp('label_comp_id')
+          ])
+        }),
+        B.struct.filter.pick({
+          0: B.struct.generator.atomGroups({
+            'group-by': B.ammp('residueKey')
+          }),
+          test: B.core.logic.or([
+            B.core.set.has([
+              B.ammpSet('label_atom_id'),
+              B.atomName('O2*')
+            ]),
+            B.core.set.has([
+              B.ammpSet('label_atom_id'),
+              B.atomName("O2'")
+            ])
+          ])
+        })
+      ])
+    })
+  },
+  protein: {
+    '@desc': 'defined as a group that (a) has one of the following group names: ALA, ARG, ASN, ASP, CYS, GLN, GLU, GLY, HIS, ILE, LEU, LYS, MET, PHE, PRO, SER, THR, TRP, TYR, VAL, ASX, GLX, or UNK; or (b) contains PDB atom designations [C, O, CA, and N] bonded correctly; or (c) does not contain "O" but contains [C, CA, and N] bonded correctly; or (d) has only one atom, which has name CA and does not have the group name CA (indicating a calcium atom).'
+  },
+  acidic: {
+    '@desc': 'ASP GLU',
+    map: () => h.resnameExpr(ResDict.acidic)
+  },
+  acyclic: {
+    '@desc': 'amino and not cyclic',
+    map: () => B.struct.modifier.intersectBy({
+      0: h.resnameExpr(ResDict.amino),
+      by: h.invertExpr(h.resnameExpr(ResDict.cyclic))
+    })
+  },
+  aliphatic: {
+    '@desc': 'ALA GLY ILE LEU VAL',
+    map: () => h.resnameExpr(ResDict.aliphatic)
+  },
+  amino: {
+    '@desc': 'all twenty standard amino acids, plus ASX, GLX, UNK',
+    map: () => h.resnameExpr(ResDict.amino)
+  },
+  aromatic: {
+    '@desc': 'HIS PHE TRP TYR (see also "isaromatic" for aromatic bonds)',
+    map: () => h.resnameExpr(ResDict.aromatic)
+  },
+  basic: {
+    '@desc': 'ARG HIS LYS',
+    map: () => h.resnameExpr(ResDict.basic)
+  },
+  buried: {
+    '@desc': 'ALA CYS ILE LEU MET PHE TRP VAL',
+    map: () => h.resnameExpr(ResDict.buried)
+  },
+  charged: {
+    '@desc': 'same as acidic or basic -- ASP GLU, ARG HIS LYS',
+    map: () => h.resnameExpr(ResDict.acidic.concat(ResDict.basic))
+  },
+  cyclic: {
+    '@desc': 'HIS PHE PRO TRP TYR',
+    map: () => h.resnameExpr(ResDict.cyclic)
+  },
+  helix: {
+    '@desc': 'secondary structure-related.',
+    map: () => B.struct.generator.atomGroups({
+      'residue-test': B.core.flags.hasAny([
+        B.struct.type.secondaryStructureFlags(['helix']),
+        B.ammp('secondaryStructureFlags')
+      ])
+    })
+  },
+  helixalpha: {
+    '@desc': 'secondary structure-related.',
+    map: () => B.struct.generator.atomGroups({
+      'residue-test': B.core.flags.hasAny([
+        B.struct.type.secondaryStructureFlags(['alpha']),
+        B.ammp('secondaryStructureFlags')
+      ])
+    })
+  },
+  helix310: {
+    '@desc': 'secondary structure-related.',
+    map: () => B.struct.generator.atomGroups({
+      'residue-test': B.core.flags.hasAny([
+        B.struct.type.secondaryStructureFlags(['3-10']),
+        B.ammp('secondaryStructureFlags')
+      ])
+    })
+  },
+  helixpi: {
+    '@desc': 'secondary structure-related.',
+    map: () => B.struct.generator.atomGroups({
+      'residue-test': B.core.flags.hasAny([
+        B.struct.type.secondaryStructureFlags(['pi']),
+        B.ammp('secondaryStructureFlags')
+      ])
+    })
+  },
+  hetero: {
+    '@desc': 'PDB atoms designated as HETATM',
+    map: () => B.struct.generator.atomGroups({
+      'atom-test': B.ammp('isHet')
+    })
+  },
+  hydrophobic: {
+    '@desc': 'ALA GLY ILE LEU MET PHE PRO TRP TYR VAL',
+    map: () => h.resnameExpr(ResDict.hydrophobic)
+  },
+  large: {
+    '@desc': 'ARG GLU GLN HIS ILE LEU LYS MET PHE TRP TYR',
+    map: () => h.resnameExpr(ResDict.large)
+  },
+  medium: {
+    '@desc': 'ASN ASP CYS PRO THR VAL',
+    map: () => h.resnameExpr(ResDict.medium)
+  },
+  negative: {
+    '@desc': 'same as acidic -- ASP GLU',
+    map: () => h.resnameExpr(ResDict.acidic)
+  },
+  neutral: {
+    '@desc': 'amino and not (acidic or basic)',
+    map: () => B.struct.modifier.intersectBy({
+      0: h.resnameExpr(ResDict.amino),
+      by: h.invertExpr(h.resnameExpr(ResDict.acidic.concat(ResDict.basic)))
+    })
+  },
+  polar: {
+    '@desc': 'amino and not hydrophobic',
+    map: () => B.struct.modifier.intersectBy({
+      0: h.resnameExpr(ResDict.amino),
+      by: h.invertExpr(h.resnameExpr(ResDict.hydrophobic))
+    })
+  },
+  positive: {
+    '@desc': 'same as basic -- ARG HIS LYS',
+    map: () => h.resnameExpr(ResDict.basic)
+  },
+  sheet: {
+    '@desc': 'secondary structure-related',
+    map: () => B.struct.generator.atomGroups({
+      'residue-test': B.core.flags.hasAny([
+        B.struct.type.secondaryStructureFlags(['sheet']),
+        B.ammp('secondaryStructureFlags')
+      ])
+    })
+  },
+  small: {
+    '@desc': 'ALA GLY SER',
+    map: () => h.resnameExpr(ResDict.small)
+  },
+  surface: {
+    '@desc': 'amino and not buried',
+    map: () => B.struct.modifier.intersectBy({
+      0: h.resnameExpr(ResDict.amino),
+      by: h.invertExpr(h.resnameExpr(ResDict.buried))
+    })
+  },
+  turn: {
+    '@desc': 'secondary structure-related',
+    map: () => B.struct.generator.atomGroups({
+      'residue-test': B.core.flags.hasAny([
+        B.struct.type.secondaryStructureFlags(['turn']),
+        B.ammp('secondaryStructureFlags')
+      ])
+    })
+  },
+  alpha: {
+    '@desc': '(*.CA)',
+    map: () => B.struct.generator.atomGroups({
+      'atom-test': B.core.rel.eq([
+        B.atomName('CA'),
+        B.ammp('label_atom_id')
+      ])
+    })
+  },
+  base: {
+    '@desc': '(nucleic bases)'
+  },
+  backbone: {
+    '@desc': '(*.C, *.CA, *.N, and all nucleic other than the bases themselves)',
+    abbr: ['mainchain']
+  },
+  sidechain: {
+    '@desc': '((protein or nucleic) and not backbone)'
+  },
+  spine: {
+    '@desc': '(*.CA, *.N, *.C for proteins; *.P, *.O3\', *.O5\', *.C3\', *.C4\', *.C5 for nucleic acids)'
+  },
+  leadatom: {
+    '@desc': '(*.CA, *.P, and terminal *.O5\')'
+  },
+  solvent: {
+    '@desc': 'PDB "HOH", water, also the connected set of H-O-H in any model'
+  },
+}
+
+
diff --git a/src/mol-script/transpilers/jmol/markdown-docs.ts b/src/mol-script/transpilers/jmol/markdown-docs.ts
new file mode 100644
index 0000000000000000000000000000000000000000..825d55612a6b6bbbdb0a51a56988b09867178c08
--- /dev/null
+++ b/src/mol-script/transpilers/jmol/markdown-docs.ts
@@ -0,0 +1,63 @@
+/* 
+ * Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.                                           
+ * @author Alexander Rose <alexander.rose@weirdbyte.de>                                                                                     
+ * @author Panagiotis Tourlas <panagiot_tourlov@hotmail.com> 
+ * 
+ * @author Koya Sakuma 
+ * This module was taken from MolQL and modified in similar manner as pymol and vmd tranpilers.                                             */
+
+import { properties } from './properties';
+import { operators } from './operators';
+import { keywords } from './keywords';
+
+
+const docs: string[] = [
+    'Jmol',
+    '============',
+    '--------------------------------',
+    ''
+];
+
+docs.push(`## Properties\n\n`);
+docs.push('--------------------------------\n');
+for (const name in properties) {
+    if (properties[name].isUnsupported) continue
+
+    const names = [name]
+    if (properties[name].abbr) names.push(...properties[name].abbr!)
+    docs.push(`\`\`\`\n${names.join(', ')}\n\`\`\`\n`);
+
+    if (properties[name]['@desc']) {
+        docs.push(`*${properties[name]['@desc']}*\n`);
+    }
+}
+
+docs.push(`## Operators\n\n`);
+docs.push('--------------------------------\n');
+operators.forEach(o => {
+    if (o.isUnsupported) return
+
+    const names = [o.name]
+    if (o.abbr) names.push(...o.abbr!)
+    docs.push(`\`\`\`\n${names.join(', ')}\n\`\`\`\n`);
+
+    if (o['@desc']) {
+        docs.push(`*${o['@desc']}*\n`);
+    }
+})
+
+docs.push(`## Keywords\n\n`);
+docs.push('--------------------------------\n');
+for (const name in keywords) {
+    if (!keywords[name].map) continue
+
+    const names = [name]
+    if (keywords[name].abbr) names.push(...keywords[name].abbr!)
+    docs.push(`\`\`\`\n${names.join(', ')}\n\`\`\`\n`);
+
+    if (keywords[name]['@desc']) {
+        docs.push(`*${keywords[name]['@desc']}*\n`);
+    }
+}
+
+export default docs.join('\n')
diff --git a/src/mol-script/transpilers/jmol/operators.ts b/src/mol-script/transpilers/jmol/operators.ts
new file mode 100644
index 0000000000000000000000000000000000000000..d673daa8a9cbbcef9df5d05b80a0c30595fcaa88
--- /dev/null
+++ b/src/mol-script/transpilers/jmol/operators.ts
@@ -0,0 +1,45 @@
+/*                                                                                                                                           
+ * Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.                                           
+ * @author Alexander Rose <alexander.rose@weirdbyte.de>                                                                                     
+ * @author Panagiotis Tourlas <panagiot_tourlov@hotmail.com>                                                                                 
+ *                                                                                                                                           
+ * @author Koya Sakuma                                                                                                                       
+ * This module was taken from MolQL and modified in similar manner as pymol and vmd tranpilers.                                             \
+ */
+
+
+import * as P from '../../../mol-util/monadic-parser';
+import * as h from '../helper';
+import { MolScriptBuilder } from '../../../mol-script/language/builder';
+const B = MolScriptBuilder;
+import { OperatorList } from '../types';
+//import { Expression } from '../../language/expression';
+
+
+export const operators: OperatorList = [
+  {
+    '@desc': 'Selects atoms that are not included in s1.',
+    '@examples': ['not ARG'],
+    name: 'not',
+    type: h.prefix,
+    rule: P.MonadicParser.alt(P.MonadicParser.regex(/NOT/i).skip(P.MonadicParser.whitespace), P.MonadicParser.string('!').skip(P.MonadicParser.optWhitespace)),
+    map: (op, selection) => h.invertExpr(selection),
+  },
+  {
+    '@desc': 'Selects atoms included in both s1 and s2.',
+    '@examples': ['ASP and .CA'],
+    name: 'and',
+    type: h.binaryLeft,
+    rule: h.infixOp(/AND|&/i),
+    map: (op, selection, by) => B.struct.modifier.intersectBy({ 0: selection, by })
+  },
+  {
+    '@desc': 'Selects atoms included in either s1 or s2.',
+    '@examples': ['ASP or GLU'],
+    name: 'or',
+    type: h.binaryLeft,
+    rule: h.infixOp(/OR|\|/i),
+    map: (op, s1, s2) => B.struct.combinator.merge([s1, s2])
+  }
+]
+
diff --git a/src/mol-script/transpilers/jmol/parser.ts b/src/mol-script/transpilers/jmol/parser.ts
new file mode 100644
index 0000000000000000000000000000000000000000..572df940043dc1162d5a529e6906b3dba4eccb73
--- /dev/null
+++ b/src/mol-script/transpilers/jmol/parser.ts
@@ -0,0 +1,256 @@
+/**
+ * Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.                                           
+ * @author Alexander Rose <alexander.rose@weirdbyte.de>
+ * @author Panagiotis Tourlas <panagiot_tourlov@hotmail.com>                                                                                
+ *                                                                                                                                          
+ * @author Koya Sakuma
+ * This module was taken from MolQL and modified in similar manner as pymol and vmd tranpilers.                                              **/
+
+
+import * as P from '../../../mol-util/monadic-parser';
+import * as h from '../helper';
+import { MolScriptBuilder } from '../../../mol-script/language/builder';
+const B = MolScriptBuilder;
+import { properties, structureMap } from './properties';
+import { operators } from './operators';
+import { keywords } from './keywords';
+import { AtomGroupArgs } from '../types';
+import { Transpiler } from '../transpiler';
+import { OperatorList } from '../types';
+
+//const propertiesDict = h.getPropertyRules(properties);
+
+//const slash = P.MonadicParser.string('/');
+
+
+// <, <=, =, >=, >, !=, and LIKE
+const valueOperators: OperatorList = [
+  {
+    '@desc': 'value comparisons',
+    '@examples': [],
+    name: '=',
+    abbr: ['=='],
+    type: h.binaryLeft,
+    rule: P.MonadicParser.regexp(/\s*(LIKE|>=|<=|=|!=|>|<)\s*/i, 1),
+    map: (op, e1, e2) => {
+      // console.log(op, e1, e2)
+      let expr
+      if (e1 === 'structure') {
+        expr = B.core.flags.hasAny([B.ammp('secondaryStructureFlags'), structureMap(e2)])
+      } else if (e2 === 'structure') {
+        expr = B.core.flags.hasAny([B.ammp('secondaryStructureFlags'), structureMap(e1)])
+      } else if (e1.head === 'core.type.regex') {
+        expr = B.core.str.match([ e1, B.core.type.str([e2]) ])
+      } else if (e2.head === 'core.type.regex') {
+        expr = B.core.str.match([ e2, B.core.type.str([e1]) ])
+      } else if (op.toUpperCase() === 'LIKE') {
+        if (e1.head) {
+          expr = B.core.str.match([
+            B.core.type.regex([`^${e2}$`, 'i']),
+            B.core.type.str([e1])
+          ])
+        } else {
+          expr = B.core.str.match([
+            B.core.type.regex([`^${e1}$`, 'i']),
+            B.core.type.str([e2])
+          ])
+        }
+      }
+      if (!expr) {
+        if (e1.head) e2 = h.wrapValue(e1, e2)
+        if (e2.head) e1 = h.wrapValue(e2, e1)
+        switch (op) {
+          case '=':
+            expr = B.core.rel.eq([e1, e2])
+            break
+          case '!=':
+            expr = B.core.rel.neq([e1, e2])
+            break
+          case '>':
+            expr = B.core.rel.gr([e1, e2])
+            break
+          case '<':
+            expr = B.core.rel.lt([e1, e2])
+            break
+          case '>=':
+            expr = B.core.rel.gre([e1, e2])
+            break
+          case '<=':
+            expr = B.core.rel.lte([e1, e2])
+            break
+          default: throw new Error(`value operator '${op}' not supported`);
+        }
+      }
+      return B.struct.generator.atomGroups({ 'atom-test': expr })
+    }
+  }
+]
+
+function atomExpressionQuery (x: any[]) {
+  const [resno, inscode, chainname, atomname, altloc, ] = x[1]
+  const tests: AtomGroupArgs = {}
+
+  if (chainname) {
+    // should be configurable, there is an option in Jmol to use auth or label
+    tests['chain-test'] = B.core.rel.eq([ B.ammp('auth_asym_id'), chainname ])
+  }
+
+  const resProps = []
+  if (resno) resProps.push(B.core.rel.eq([ B.ammp('auth_seq_id'), resno ]))
+  if (inscode) resProps.push(B.core.rel.eq([ B.ammp('pdbx_PDB_ins_code'), inscode ]))
+  if (resProps.length) tests['residue-test'] = h.andExpr(resProps)
+
+  const atomProps = []
+  if (atomname) atomProps.push(B.core.rel.eq([ B.ammp('auth_atom_id'), atomname ]))
+  if (altloc) atomProps.push(B.core.rel.eq([ B.ammp('label_alt_id'), altloc ]))
+  if (atomProps.length) tests['atom-test'] = h.andExpr(atomProps)
+
+  return B.struct.generator.atomGroups(tests)
+}
+
+const lang = P.MonadicParser.createLanguage({
+  Integer: () => P.MonadicParser.regexp(/-?[0-9]+/).map(Number).desc('integer'),
+
+    Parens: function (r:any) {
+    return P.MonadicParser.alt(
+      r.Parens,
+      r.Operator,
+      r.Expression
+    ).wrap(P.MonadicParser.string('('), P.MonadicParser.string(')'))
+  },
+
+    Expression: function(r:any) {
+    return P.MonadicParser.alt(
+      r.Keywords,
+
+	r.Resno.lookahead(P.MonadicParser.regexp(/\s*(?!(LIKE|>=|<=|!=|[:^%/.=><]))/i)).map((x:any) => B.struct.generator.atomGroups({
+          'residue-test': B.core.rel.eq([ B.ammp('auth_seq_id'), x ])
+      })),
+      r.AtomExpression.map(atomExpressionQuery),
+
+      r.ValueQuery,
+
+      r.Element.map((x: string) => B.struct.generator.atomGroups({
+        'atom-test': B.core.rel.eq([ B.acp('elementSymbol'), B.struct.type.elementSymbol(x) ])
+      })),
+      r.Resname.map((x: string) => B.struct.generator.atomGroups({
+        'residue-test': B.core.rel.eq([ B.ammp('label_comp_id'), x ])
+      })),
+    )
+  },
+
+Operator: function(r:any) {
+    return h.combineOperators(operators, P.MonadicParser.alt(r.Parens, r.Expression))
+  },
+
+AtomExpression: function(r:any) {
+    return P.MonadicParser.seq(
+      P.MonadicParser.lookahead(r.AtomPrefix),
+      P.MonadicParser.seq(
+        r.Resno.or(P.MonadicParser.of(null)),
+        r.Inscode.or(P.MonadicParser.of(null)),
+        r.Chainname.or(P.MonadicParser.of(null)),
+        r.Atomname.or(P.MonadicParser.of(null)),
+        r.Altloc.or(P.MonadicParser.of(null)),
+        r.Model.or(P.MonadicParser.of(null))
+      )
+    )
+  },
+
+  AtomPrefix: () => P.MonadicParser.regexp(/[0-9:^%/.]/).desc('atom-prefix'),
+
+  Chainname: () => P.MonadicParser.regexp(/:([A-Za-z]{1,3})/, 1).desc('chainname'),
+  Model: () => P.MonadicParser.regexp(/\/([0-9]+)/, 1).map(Number).desc('model'),
+  Element: () => P.MonadicParser.regexp(/_([A-Za-z]{1,3})/, 1).desc('element'),
+  Atomname: () => P.MonadicParser.regexp(/\.([a-zA-Z0-9]{1,4})/, 1).map(B.atomName).desc('atomname'),
+  Resname: () => P.MonadicParser.regexp(/[a-zA-Z0-9]{1,4}/).desc('resname'),
+Resno: (r:any) => r.Integer.desc('resno'),
+  Altloc: () => P.MonadicParser.regexp(/%([a-zA-Z0-9])/, 1).desc('altloc'),
+  Inscode: () => P.MonadicParser.regexp(/\^([a-zA-Z0-9])/, 1).desc('inscode'),
+
+  // BracketedResname: function (r) {
+  //   return P.MonadicParser.regexp(/\.([a-zA-Z0-9]{1,4})/, 1)
+  //     .desc('bracketed-resname')
+  //   // [0SD]
+  // },
+
+  // ResnoRange: function (r) {
+  //   return P.MonadicParser.regexp(/\.([\s]){1,3}/, 1)
+  //     .desc('resno-range')
+  //   // 123-200
+  //   // -12--3
+  // },
+
+  Keywords: () => P.MonadicParser.alt(...h.getKeywordRules(keywords)),
+
+Query: function(r:any) {
+    return P.MonadicParser.alt(
+      r.Operator,
+      r.Parens,
+      r.Expression
+    ).trim(P.MonadicParser.optWhitespace)
+  },
+
+  Number: function () {
+    return P.MonadicParser.regexp(/-?(0|[1-9][0-9]*)([.][0-9]+)?([eE][+-]?[0-9]+)?/)
+      .map(Number)
+      .desc('number')
+  },
+
+  String: function () {
+    const w = h.getReservedWords(properties, keywords, operators)
+      .sort(h.strLenSortFn).map(h.escapeRegExp).join('|')
+    return P.MonadicParser.alt(
+      P.MonadicParser.regexp(new RegExp(`(?!(${w}))[A-Z0-9_]+`, 'i')),
+      P.MonadicParser.regexp(/'((?:[^"\\]|\\.)*)'/, 1),
+      P.MonadicParser.regexp(/"((?:[^"\\]|\\.)*)"/, 1).map(x => B.core.type.regex([`^${x}$`, 'i']))
+    )
+  },
+
+Value: function (r:any) {
+    return P.MonadicParser.alt(r.Number, r.String)
+  },
+
+ValueParens: function (r:any) {
+    return P.MonadicParser.alt(
+      r.ValueParens,
+      r.ValueOperator,
+      r.ValueExpressions
+    ).wrap(P.MonadicParser.string('('), P.MonadicParser.string(')'))
+  },
+
+  ValuePropertyNames: function() {
+    return P.MonadicParser.alt(...h.getPropertyNameRules(properties, /LIKE|>=|<=|=|!=|>|<|\)|\s/i))
+  },
+
+ValueOperator: function(r:any) {
+    return h.combineOperators(valueOperators, P.MonadicParser.alt(r.ValueParens, r.ValueExpressions))
+  },
+
+ValueExpressions: function(r:any) {
+    return P.MonadicParser.alt(
+      r.Value,
+      r.ValuePropertyNames
+    )
+  },
+
+ValueQuery: function(r:any) {
+    return P.MonadicParser.alt(
+	r.ValueOperator.map((x:any) => {
+        if (x.head) {
+          if (x.head.startsWith('structure.generator')) return x
+        } else {
+          if (typeof x === 'string' && x.length <= 4) {
+            return B.struct.generator.atomGroups({
+              'residue-test': B.core.rel.eq([ B.ammp('label_comp_id'), x ])
+            })
+          }
+        }
+        throw new Error(`values must be part of an comparison, value '${x}'`)
+      })
+    )
+  }
+})
+
+const transpiler: Transpiler = str => lang.Query.tryParse(str)
+export default transpiler
diff --git a/src/mol-script/transpilers/jmol/properties.ts b/src/mol-script/transpilers/jmol/properties.ts
new file mode 100644
index 0000000000000000000000000000000000000000..f86bbb9981e0052c4d61955efb9a9422f6ccae80
--- /dev/null
+++ b/src/mol-script/transpilers/jmol/properties.ts
@@ -0,0 +1,665 @@
+/*                                                                                                                                           
+ * Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.                                           
+ * @author Alexander Rose <alexander.rose@weirdbyte.de>                                                                                     
+ * @author Panagiotis Tourlas <panagiot_tourlov@hotmail.com>                                                                                 
+ *                                                                                                                                           
+ * @author Koya Sakuma                                                                                                                       
+ * This module was taken from MolQL and modified in similar manner as pymol and vmd tranpilers.                                             \
+*/
+
+import { MolScriptBuilder } from '../../../mol-script/language/builder';
+const B = MolScriptBuilder;
+import { PropertyDict } from '../types';
+
+const reFloat = /[-+]?[0-9]*\.?[0-9]+/
+const rePosInt = /[0-9]+/
+
+function str(x: string) { return x }
+
+const structureDict: {[key: string]: string} = {
+  none: 'none',
+  turn: 'turn',
+  sheet: 'beta',
+  helix: 'helix',
+  dna: 'dna',
+  rna: 'rna',
+  carbohydrate: 'carbohydrate',
+  helix310: '3-10',
+  helixalpha: 'alpha',
+  helixpi: 'pi',
+
+  0: 'none',
+  1: 'turn',
+  2: 'beta',
+  3: 'helix',
+  4: 'dna',
+  5: 'rna',
+  6: 'carbohydrate',
+  7: '3-10',
+  8: 'alpha',
+  9: 'pi',
+}
+export function structureMap(x: any) {
+  if (x.head && x.head === 'core.type.regex') x = x.args[0].replace(/^\^|\$$/g, '')
+  x = structureDict[x.toString().toLowerCase()] || 'none'
+  if (['dna', 'rna', 'carbohydrate'].indexOf(x) !== -1) {
+    throw new Error("values 'dna', 'rna', 'carbohydrate' not yet supported for 'structure' property")
+  } else {
+    return B.struct.type.secondaryStructureFlags([x])
+  }
+}
+
+export const properties: PropertyDict = {
+  adpmax: {
+    '@desc': 'the maximum anisotropic displacement parameter for the selected atom',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: reFloat, map: x => parseFloat(x),
+    level: 'atom-test'
+  },
+  adpmin: {
+    '@desc': 'the minimum anisotropic displacement parameter for the selected atom',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: reFloat, map: x => parseFloat(x),
+    level: 'atom-test'
+  },
+  altloc: {
+    '@desc': 'PDB alternate location identifier',
+    '@examples': ['altloc = A'],
+    regex: /[a-zA-Z0-9]/, map: str,
+    level: 'atom-test', property: B.ammp('label_alt_id')
+  },
+  altname: {
+    '@desc': 'an alternative name given to atoms by some file readers (for example, P2N)',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[a-zA-Z0-9]/, map: str,
+    level: 'atom-test'
+  },
+  atomID: {
+    '@desc': 'special atom IDs for PDB atoms assigned by Jmol',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: rePosInt, map: x => parseInt(x),
+    level: 'atom-test'
+  },
+  atomIndex: {
+    '@desc': 'atom 0-based index; a unique number for each atom regardless of the number of models loaded',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: rePosInt, map: x => parseInt(x),
+    level: 'atom-test'
+  },
+  atomName: {
+    '@desc': 'atom name',
+    '@examples': ['atomName = CA'],
+    regex: /[a-zA-Z0-9]+/, map: v => B.atomName(v),
+    level: 'atom-test', property: B.ammp('label_atom_id')
+  },
+  atomno: {
+    '@desc': 'sequential number; you can use "@" instead of "atomno=" -- for example, select @33 or Var x = @33 or @35',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: rePosInt, map: x => parseInt(x),
+    level: 'atom-test'
+  },
+  atomType: {
+    '@desc': 'atom type (mol2, AMBER files) or atom name (other file types)',
+    '@examples': ['atomType = OH'],
+    regex: /[a-zA-Z0-9]+/, map: v => B.atomName(v),
+    level: 'atom-test', property: B.ammp('label_atom_id')
+  },
+  atomX: {
+    '@desc': 'Cartesian X coordinate (or just X)',
+    '@examples': ['x = 4.2'],
+    abbr: ['X'],
+    isNumeric: true,
+    regex: reFloat, map: x => parseFloat(x),
+    level: 'atom-test', property: B.acp('x')
+  },
+  atomY: {
+    '@desc': 'Cartesian Y coordinate (or just Y)',
+    '@examples': ['y < 42'],
+    abbr: ['Y'],
+    isNumeric: true,
+    regex: reFloat, map: x => parseFloat(x),
+    level: 'atom-test', property: B.acp('y')
+  },
+  atomZ: {
+    '@desc': 'Cartesian Z coordinate (or just Z)',
+    '@examples': ['Z > 10'],
+    abbr: ['Z'],
+    isNumeric: true,
+    regex: reFloat, map: x => parseFloat(x),
+    level: 'atom-test', property: B.acp('z')
+  },
+  bondcount: {
+    '@desc': 'covalent bond count',
+    '@examples': ['bondcount = 0'],
+    isNumeric: true,
+    regex: rePosInt, map: x => parseInt(x),
+    level: 'atom-test', property: B.acp('bondCount')
+  },
+  bondingRadius: {
+    '@desc': 'radius used for auto bonding; synonymous with ionic and ionicRadius',
+    '@examples': [''],
+    abbr: ['ionic', 'ionicRadius'],
+    isUnsupported: true,
+    regex: reFloat, map: x => parseFloat(x),
+    level: 'atom-test'
+  },
+  cell: {
+    '@desc': 'crystallographic unit cell, expressed either in lattice integer notation (111-999) or as a coordinate in ijk space, where {1 1 1} is the same as 555. ANDing two cells, for example select cell=555 and cell=556, selects the atoms on the common face. (Note: in the specifc case of CELL, only "=" is allowed as a comparator.)',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  configuration: {
+    '@desc': 'Only in the context {configuration=n}, this option selects the set of atoms with either no ALTLOC specified or those atoms having this index into the array of altlocs within its model. So, for example, if the model has altloc "A" and "B", select configuration=1 is equivalent to select altloc="" or altloc="A", and print {configuration=2} is equivalent to print {altloc="" or altloc="B"}. Configuration 0 is "all atoms in a model having configurations", and an invalid configuration number gives no atoms. (Note: in the specifc case of CONFIGURATION, only "=" is allowed as a comparator.)',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: rePosInt, map: x => parseInt(x),
+    level: 'atom-test'
+  },
+  chain: {
+    '@desc': 'protein chain. For newer CIF files allowing multicharacter chain specifications, use quotations marks: select chain="AA". For these multicharacter desigations, case is not checked unless the CIF file has lower-case chain designations.',
+    '@examples': ['chain = A', 'chain = "AA"'],
+    regex: /[a-zA-Z0-9]+/, map: str,
+    level: 'chain-test', property: B.ammp('auth_asym_id')
+  },
+  chainNo: {
+    '@desc': 'chain number; sequentially counted from 1 for each model; chainNo == 0 means"no chain" or PDB chain identifier indicated as a blank (Jmol 14.0).',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  color: {
+    '@desc': 'the atom color',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  covalentRadius: {
+    '@desc': 'covalent bonding radius, synonymous with covalent. Not used by Jmol, but could be used, for example, in {*}.spacefill={*}.covalentRadius.all.',
+    '@examples': [''],
+    abbr: ['covalent'],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  cs: {
+    '@desc': 'chemical shift calculated using computational results that include magnetic shielding tensors.',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  element: {
+    '@desc': 'element symbol. The value of this parameter depends upon the context. Used with select structure=x, x can be either the quoted element symbol, "H", "He", "Li", etc. or atomic number. In all other contexts, the value is the element symbol. When the atom is a specific isotope, the string will contain the isotope number -- "13C", for example.',
+    '@examples': ['element=Fe'],
+    regex: /[a-zA-Z]+/, map: x => B.es(x),
+    level: 'atom-test', property: B.acp('elementSymbol')
+  },
+  elemno: {
+    '@desc': 'atomic element number',
+    '@examples': ['elemno=8'],
+    regex: /[0-9\s{}-]+/, map: x => parseInt(x),
+    level: 'atom-test', property: B.acp('atomicNumber')
+  },
+  eta: {
+    '@desc': 'Based on Carlos M. Duarte, Leven M. Wadley, and Anna Marie Pyle, RNA structure comparison, motif search and discovery using a reduced representation of RNA conformational space, Nucleic Acids Research, 2003, Vol. 31, No. 16 4755-4761. The parameter eta is the C4\'[i-1]-P[i]-C4\'[i]-P[i+1] dihedral angle; theta is the P[i]-C4\'[i]-P[i+1]-C4\'[i+1] dihedral angle. Both are measured on a 0-360 degree scale because they are commonly near 180 degrees. Using the commands plot PROPERTIES eta theta resno; select visible;wireframe only one can create these authors\' "RNA worm" graph.',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  theta: {
+    '@desc': 'Based on Carlos M. Duarte, Leven M. Wadley, and Anna Marie Pyle, RNA structure comparison, motif search and discovery using a reduced representation of RNA conformational space, Nucleic Acids Research, 2003, Vol. 31, No. 16 4755-4761. The parameter eta is the C4\'[i-1]-P[i]-C4\'[i]-P[i+1] dihedral angle; theta is the P[i]-C4\'[i]-P[i+1]-C4\'[i+1] dihedral angle. Both are measured on a 0-360 degree scale because they are commonly near 180 degrees. Using the commands plot PROPERTIES eta theta resno; select visible;wireframe only one can create these authors\' "RNA worm" graph.',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  file: {
+    '@desc': 'file number containing this atom',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  formalCharge: {
+    '@desc': 'formal charge',
+    '@examples': ['formalCharge=1'],
+    regex: reFloat, map: x => parseFloat(x),
+    level: 'atom-test', property: B.ammp('pdbx_formal_charge')
+  },
+  format: {
+    '@desc': 'format (label) of the atom.',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  fXyz: {
+    '@desc': 'fractional XYZ coordinates',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  fX: {
+    '@desc': 'fractional X coordinate',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  fY: {
+    '@desc': 'fractional Y coordinate',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  fZ: {
+    '@desc': 'fractional Z coordinate',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  fuxyz: {
+    '@desc': 'fractional XYZ coordinates in the unitcell coordinate system',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  fux: {
+    '@desc': 'fractional X coordinate in the unitcell coordinate system',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  fuy: {
+    '@desc': 'fractional Y coordinate in the unitcell coordinate system',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  fuz: {
+    '@desc': 'fractional Z coordinate in the unit cell coordinate system',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  group: {
+    '@desc': '3-letter residue code',
+    '@examples': ['group = ALA'],
+    regex: /[a-zA-Z0-9]{1,3}/, map: str,
+    level: 'residue-test', property: B.ammp('label_comp_id')
+  },
+  group1: {
+    '@desc': 'single-letter residue code (amino acids only)',
+    '@examples': ['group1 = G'],
+    regex: /[a-zA-Z]/, map: str,
+    level: 'residue-test', property: B.ammp('label_comp_id')
+  },
+  groupID: {
+    '@desc': 'group ID number: A unique ID for each amino acid or nucleic acid residue in a PDB file. 0  noGroup 1-5  ALA, ARG, ASN, ASP, CYS 6-10  GLN, GLU, GLY, HIS, ILE 11-15  LEU, LYS, MET, PHE, PRO 16-20  SER, THR, TRP, TYR, VAL 21-23  ASX, GLX, UNK 24-29  A, +A, G, +G, I, +I 30-35  C, +C, T, +T, U, +U Additional unique numbers are assigned arbitrarily by Jmol and cannot be used reproducibly.',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  groupindex: {
+    '@desc': 'overall group index',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  hydrophobicity: {
+    '@desc': 'Aminoacid residue scale of hydrophobicity based on Rose, G. D., Geselowitz, A. R., Lesser, G. J., Lee, R. H., and Zehfus, M. H. (1985). Hydrophobicity of amino acid residues in globular proteins, Science, 229(4716):834-838.',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  identify: {
+    '@desc': 'for a PDB/mmCIF file, a label such as [ILE]7^1:A.CD1%A/3 #47, which includes the group ([ILE]), residue number with optional insertion code (7^1), chain (:A), atom name (CD1), alternate location if present (%A), PDB model number (/3, for NMR models when one file is loaded; /file.model such as /2.3 if more than one file is loaded), and atom number (#47). For non-PDB data, the information is shorter -- for example, H15/2.1 #6, indicating atom name (H15), full file.model number (/2.1), and atom number (#6). If only a single model is loaded, %[identify] does not include the model number.',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  insertion: {
+    '@desc': 'protein residue insertion code',
+    '@examples': ['insertion=A'],
+    regex: /[a-zA-Z0-9]/, map: str,
+    level: 'atom-test', property: B.ammp('pdbx_PDB_ins_code')
+  },
+  label: {
+    '@desc': 'current atom label (same as format)',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  mass: {
+    '@desc': 'atomic mass -- especially useful with appended .max or .sum',
+    '@examples': ['mass > 13'],
+    regex: reFloat, map: x => parseFloat(x),
+    level: 'atom-test', property: B.acp('mass')
+  },
+  model: {
+    '@desc': 'model number',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  modelindex: {
+    '@desc': 'a unique number for each model, starting with 0 and spanning all models in all files',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  modO: {
+    '@desc': 'currently calculated occupancy from modulation (0 to 100; NaN if atom has no occupancy modulation)',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  modXYZ: {
+    '@desc': 'currently calculated displacement modulation (for incommensurately modulated structures). Also modX, modY, modZ for individual components. For atoms without modultion, {xx}.modXYZ is -1 and {xx}.modX is NaN, and in a label %[modXYZ] and %[modX] are blank.',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  molecule: {
+    '@desc': 'molecule number',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  monomer: {
+    '@desc': 'monomer number (group number) in a polymer (usually a chain), starting with 1, or 0 if not part of a biopolymer -- that is, not a connected carbohydrate, amino acid, or nucleic acid (Jmol 14.3.15)',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  ms: {
+    '@desc': 'magnetic shielding calculated from file-loaded tensors.',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  occupancy: {
+    '@desc': 'CIF file site occupancy. In SELECT command comparisons ("select occupancy < 90"), an integer n implies measurement on a 0-100 scale; also, in the context %[occupancy] or %q for a label, the reported number is a percentage. In all other cases, such as when %Q is used in a label or when a decimal number is used in a comparison, the scale is 0.0 - 1.0.',
+    '@examples': ['occupancy < 1'],
+    regex: reFloat, map: x => parseFloat(x),
+    level: 'atom-test', property: B.ammp('occupancy')
+  },
+  partialCharge: {
+    '@desc': 'partial charge',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: reFloat, map: x => parseFloat(x),
+    level: 'atom-test'
+  },
+  phi: {
+    '@desc': 'protein group PHI angle for atom\'s residue',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  polymer: {
+    '@desc': 'sequential polymer number in a model, starting with 1.',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  polymerLength: {
+    '@desc': 'polymer length',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  property_xx: {
+    '@desc': 'a property created using the DATA command',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  psi: {
+    '@desc': 'protein group PSI angle for the atom\'s residue',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  radius: {
+    '@desc': 'currently displayed radius -- In SELECT command comparisons ("select radius=n"), integer n implies Rasmol units 1/250 Angstroms; in all other cases or when a decimal number is used, the units are Angstroms.',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  resno: {
+    '@desc': 'PDB residue number, not including insertion code (see also seqcode, below)',
+    '@examples': ['resno = 100'],
+    regex: /-?[0-9]+/, map: x => parseInt(x),
+    level: 'residue-test', property: B.ammp('auth_seq_id')
+  },
+  selected: {
+    '@desc': '1.0 if atom is selected; 0.0 if not',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  sequence: {
+    '@desc': 'PDB one-character sequence code, as a string of characters, with "?" indicated where single-character codes are not available',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  seqcode: {
+    '@desc': 'PDB residue number, including insertion code (for example, 234^2; "seqcode" option added in Jmol 14.3.16)',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  seqid: {
+    '@desc': '(mmCIF only) the value from _atom_site.label_seq_id; a pointer to _entity_poly_seq.num in the ENTITY_POLY_SEQ category specifying the sequence of monomers in a polymer. Allowance is made for the possibility of microheterogeneity in a sample by allowing a given sequence number to be correlated with more than one monomer id. (Jmol 14.2.3)',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  shape: {
+    '@desc': 'hybridization geometry such as "tetrahedral"',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  site: {
+    '@desc': 'crystallographic site number',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  spacefill: {
+    '@desc': 'currently displayed radius',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  straightness: {
+    '@desc': 'quaternion-derived straightness (second derivative of the quaternion describing the orientation of the residue. This quantity will have different values depending upon the setting of quaternionFrame as "A" (alpha-carbon/phosphorus atom only), "C" (alpha-carbon/pyrimidine or purine base based), "P" (carbonyl-carbon peptide plane/phosphorus tetrahedron based), or "N" (amide-nitrogen based). The default is alpha-carbon based, which corresponds closely to the following combination of Ramachandran angles involving three consecutive residues i-1, i, and i+1: -psii-1 - phii + psii + phii+1.',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  strucno: {
+    '@desc': 'a unique number for each helix, sheet, or turn in a model, starting with 1.',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  structure: {
+    '@desc': 'The value of this parameter depends upon the context. Used with select structure=x, x can be either the quoted keyword "none", "turn", "sheet", "helix", "dna", "rna", or "carbohydrate" or a respective number 0-6. In the context {*}.structure, the return value is a number; in the context label %[structure], the return is one of the six keywords.',
+    '@examples': ['structure="helix"', 'structure=3'],
+    regex: /none|turn|sheet|helix|dna|rna|carbohydrate|[0-6]/i, map: str,
+    level: 'residue-test', property: 'structure'
+  },
+  substructure: {
+    '@desc': 'like structure, the value of this parameter depends upon the context. Used with select substructure=x, x can be either the quoted keyword "none", "turn", "sheet", "helix", "dna", "rna", "carbohydrate", "helix310", "helixalpha", or "helixpi", or the respective number 0-9. In the context {*}.substructure, the return value is a number; in the context label %[substructure], the return is one of the nine keywords.',
+    '@examples': ['substructure = "alphahelix"', 'substructure =9'],
+    regex: /none|turn|sheet|helix|dna|rna|carbohydrate|helix310|helixalpha|helixpi|[0-9]/i, map: str,
+    level: 'residue-test', property: 'structure'
+  },
+  surfacedistance: {
+    '@desc': 'A value related to the distance of an atom to a nominal molecular surface. 0 indicates at the surface. Positive numbers are minimum distances in Angstroms from the given atom to the surface.',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  symop: {
+    '@desc': 'the first symmetry operation code that generated this atom by Jmol; an integer starting with 1. See also symmetry, below. This operator is only present if the file contains space group information and the file was loaded using the {i, j, k} option so as to generate symmetry-based atoms. To select only the original atoms prior to application of symmetry, you can either use "SYMOP=n", where n is the symmetry operator corresponding to "x,y,z", or you can specify instead simply "NOT symmetry" the way you might specify "NOT hydrogen". Note that atoms in special positions will have multiple operator matches. These atoms can be selected using the keyword SPECIALPOSITION. The special form select SYMOP=nijk selects a specific translation of atoms from the given crystallographic symmetry operation. Comparators <, <=, >, >=, and != can be used and only apply to the ijk part of the designation. The ijk are relative, not absolute. Thus, symop=2555 selects for atoms that have been transformed by symop=2 but not subjected to any further translation. select symop=1555 is identical to select not symmetry. All other ijk are relative to these selections for 555. If the model was loaded using load "filename.cif" {444 666 1}, where the 1 indicates that all symmetry-generated atoms are to be packed within cell 555 and then translated to fill the other 26 specified cells, then select symop=3555 is nearly the same as select symop=3 and cell=555. (The difference being that cell=555 selects for all atoms that are on any edge of the cell, while symop=3555 does not.) However, the situation is different if instead the model was loaded using load "filename.cif" {444 666 0}, where the 0 indicates that symmetry-generated atoms are to be placed exactly where their symmetry operator would put them (x,-y,z being different then from x, 1-y, z). In that case, select symop=3555 is for all atoms that have been generated using symmetry operation 3 but have not had any additional translations applied to the x,y,z expression found in the CIF file. If, for example, symmetry operation 3 is -x,-y,-z, then load "filename.cif" {444 666 0} will place an atom originally at {1/2, 1/2, 1/2} at positions {-1/2, -1/2, -1/2} (symop=3555) and {-3/2, -3/2, -3/2} (symop=3444) and 24 other sites.',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  symmetry: {
+    '@desc': 'as "symmetry" or in a label as lower-case "o" gives list of crystallographic symmetry operators generating this atom with lattice designations,such as 3555; upper-case "%O" in a label gives a list without the lattice designations. See also symop, above.',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  temperature: {
+    '@desc': 'yes  yes  temperature factor (B-factor)',
+    '@examples': ['temperature >= 20'],
+    regex: reFloat, map: x => parseFloat(x),
+    level: 'atom-test', property: B.ammp('B_iso_or_equiv')
+  },
+  unitXyz: {
+    '@desc': 'unit cell XYZ coordinates',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  uX: {
+    '@desc': 'unit cell X coordinate normalized to [0,1)',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  uY: {
+    '@desc': 'unit cell Y coordinate normalized to [0,1)',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  uZ: {
+    '@desc': 'unit cell Z coordinate normalized to [0,1)',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  valence: {
+    '@desc': 'the valence of an atom (sum of bonds, where double bond counts as 2 and triple bond counts as 3',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  vanderwaals: {
+    '@desc': 'van der Waals radius',
+    '@examples': ['vanderwaals >2'],
+    regex: reFloat, map: x => parseFloat(x),
+    level: 'atom-test', property: B.acp('vdw')
+  },
+  vectorScale: {
+    '@desc': 'vibration vector scale',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  volume: {
+    '@desc': 'approximate van der Waals volume for this atom. Note, {*}.volume gives an average; use {*}.volume.sum to get total volume.',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  vXyz: {
+    '@desc': 'vibration vector, or individual components as %vx %vy %vz. For atoms without vibration vectors, {xx}.vXyz is -1; in a label, %[vxyz] is blank.',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  vX: {
+    '@desc': 'vibration vector X coordinate; for atoms without vibration vector, {xx}.vX is NaN (same for vY and vZ)',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  vY: {
+    '@desc': 'vibration vector Y coordinate',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  vZ: {
+    '@desc': 'vibration vector Z coordinate',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+  xyz: {
+    '@desc': 'Cartesian XYZ coordinates; select xyz > 1.0 selects atoms more than one Angstrom from the origin.',
+    '@examples': [''],
+    isUnsupported: true,
+    regex: /[0-9\s{}-]+/, map: str,
+    level: 'atom-test'
+  },
+}
+
diff --git a/src/mol-script/transpilers/jmol/symbols.ts b/src/mol-script/transpilers/jmol/symbols.ts
new file mode 100644
index 0000000000000000000000000000000000000000..9f07f7b41a40f390df10c35a9f71dc8b29d16a80
--- /dev/null
+++ b/src/mol-script/transpilers/jmol/symbols.ts
@@ -0,0 +1,36 @@
+/*                                                                                                                                           
+ * Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.                                           
+ * @author Alexander Rose <alexander.rose@weirdbyte.de>                                                                                     
+ * @author Panagiotis Tourlas <panagiot_tourlov@hotmail.com>                                                                                 
+ *                                                                                                                                           
+ * @author Koya Sakuma                                                                                                                       
+ * This module was taken from MolQL and modified in similar manner as pymol and vmd tranpilers.                                             \
+*/
+
+import { properties } from './properties';
+import { operators } from './operators';
+import { keywords } from './keywords';
+
+export const Properties: string[] = []
+for (const name in properties) {
+    if (properties[name].isUnsupported) continue
+    Properties.push(name)
+    if (properties[name].abbr) Properties.push(...properties[name].abbr!)
+}
+
+export const Operators: string[] = []
+operators.forEach(o => {
+    if (o.isUnsupported) return
+    Operators.push(o.name)
+    if (o.abbr) Operators.push(...o.abbr)
+})
+
+export const Keywords: string[] = []
+for (const name in keywords) {
+    if (!keywords[name].map) continue
+    Keywords.push(name)
+    if (keywords[name].abbr) Keywords.push(...keywords[name].abbr!)
+}
+
+const _all = { Properties, Operators, Keywords }
+export default _all
diff --git a/src/mol-script/transpilers/pymol/keywords.ts b/src/mol-script/transpilers/pymol/keywords.ts
index 84f2e7507b340902303077c5354aadfd3f5efe30..92d2b99aadcafeb3451c02ed7e8bc1674f867cd4 100644
--- a/src/mol-script/transpilers/pymol/keywords.ts
+++ b/src/mol-script/transpilers/pymol/keywords.ts
@@ -16,11 +16,17 @@ const ResDict = {
     solvent: ['HOH', 'WAT', 'H20', 'TIP', 'SOL']
 };
 
+const Backbone = {
+    nucleic: ['P', "O3'", "O5'", "C5'", "C4'", "C3'", 'OP1', 'OP2', 'O3*', 'O5*', 'C5*', 'C4*', 'C3*'],
+    protein: ['C', 'N', 'CA', 'O']
+};
+
+
 export const keywords: KeywordDict = {
     all: {
         '@desc': 'All atoms currently loaded into PyMOL',
         abbr: ['*'],
-        map: () => B.struct.generator.atomGroups()
+        map: () => B.struct.generator.all()
     },
     none: {
         '@desc': 'No atoms (empty selection)',
@@ -57,10 +63,6 @@ export const keywords: KeywordDict = {
             ])
         })
     },
-    backbone: {
-        '@desc': 'Polymer backbone atoms (new in PyMOL 1.6.1)',
-        abbr: ['bb.']
-    },
     sidechain: {
         '@desc': 'Polymer non-backbone atoms (new in PyMOL 1.6.1)',
         abbr: ['sc.']
@@ -198,5 +200,80 @@ export const keywords: KeywordDict = {
     },
     metals: {
         '@desc': 'All metal atoms (new in PyMOL 1.6.1)'
+    },
+    backbone: {
+        '@desc': 'the C, N, CA, and O atoms of a protein and the equivalent atoms in a nucleic acid.',
+        map: () => backboneExpr()
+    },
+    protein: {
+        '@desc': 'protein',
+	abbr: ['polymer.protein'],
+        map: () => B.struct.generator.atomGroups({
+            'residue-test': B.core.set.has([
+                B.core.type.set(ResDict.protein),
+                B.ammp('label_comp_id')
+            ])
+        })
     }
 };
+
+function backboneExpr() {
+    return B.struct.combinator.merge([
+        B.struct.generator.queryInSelection({
+            0: proteinExpr(),
+            query: B.struct.generator.atomGroups({
+                'atom-test': B.core.set.has([
+                    h.atomNameSet(Backbone.protein),
+                    B.ammp('label_atom_id')
+                ])
+            })
+        }),
+        B.struct.generator.queryInSelection({
+            0: nucleicExpr(),
+            query: B.struct.generator.atomGroups({
+                'atom-test': B.core.set.has([
+                    h.atomNameSet(Backbone.nucleic),
+                    B.ammp('label_atom_id')
+                ])
+            })
+        })
+    ]);
+}
+
+function proteinExpr() {
+    return B.struct.filter.pick({
+        0: B.struct.generator.atomGroups({
+            'group-by': B.ammp('residueKey')
+        }),
+        test: B.core.set.isSubset([
+            h.atomNameSet(['C', 'N', 'CA', 'O']),
+            B.ammpSet('label_atom_id')
+        ])
+    });
+}
+
+function nucleicExpr() {
+    return B.struct.filter.pick({
+        0: B.struct.generator.atomGroups({
+            'group-by': B.ammp('residueKey')
+        }),
+        test: B.core.logic.and([
+            B.core.set.isSubset([
+                // B.core.type.set([ 'P', 'O1P', 'O2P' ]),
+                h.atomNameSet(['P']),
+                B.ammpSet('label_atom_id')
+            ]),
+            B.core.logic.or([
+                B.core.set.isSubset([
+                    h.atomNameSet(["O3'", "C3'", "C4'", "C5'", "O5'"]),
+                    B.ammpSet('label_atom_id')
+                ]),
+                B.core.set.isSubset([
+                    h.atomNameSet(['O3*', 'C3*', 'C4*', 'C5*', 'O5*']),
+                    B.ammpSet('label_atom_id')
+                ])
+            ])
+        ])
+    });
+}
+