This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dragonfly import ActionBase | |
from dragonfly import Context | |
from dragonfly import Text | |
class PositionalTexter(object): | |
def __init__(self, func, extra=()): | |
self.func = func |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# non_braces | |
[non_braces.greek] | |
# does not require curly braces in latex | |
alpha = "alpha" | |
beater = "beta" | |
gamma = "gamma" | |
delta = "delta" | |
epsilon = "epsilon" | |
zita = "zeta" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import toml | |
import io | |
from dragonfly import (Grammar, Context, AppContext, Dictation, Key, Text, Repeat, | |
Function, Choice, Mouse) | |
from castervoice.lib import context, navigation, alphanumeric, textformat, text_utils | |
from castervoice.lib import control | |
from castervoice.lib.dfplus.additions import IntegerRefST | |
from castervoice.lib.dfplus.merge.ccrmerger import CCRMerger | |
from castervoice.lib.dfplus.merge.mergerule import MergeRule | |
from castervoice.lib.dfplus.state.short import R |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def _build_dict_of_words(paragraph): | |
wordslist = paragraph.split(' ') | |
unique_words_list = list(set(wordslist)) | |
dict_of_words = {word: 0 for word in unique_words_list} | |
for word in wordslist: |
NewerOlder