This file contains 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
function deconstructNumber(deconstructee) { | |
let numberAsArray = []; | |
let divisor = 10; | |
let index = 0; | |
let sign = ""; | |
if (deconstructee.includes("-")) { | |
deconstructee = deconstructee.substring(1); | |
sign = "-"; | |
} | |
if (deconstructee === "0") { |
This file contains 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
private String printTextPerRole(String[] roles, String[] textLines) { | |
StringBuilder sb = new StringBuilder(); | |
for (String role : roles){ | |
sb.append(role + ":\n"); | |
for (int line = 0; line < textLines.length; line++){ | |
int indexOfColon = textLines[line].indexOf(":"); | |
String roleInLine = textLines[line].substring(0,indexOfColon); | |
if (role.equalsIgnoreCase(roleInLine)){ | |
int lineNumInScript = line + 1; | |
int indexOfSpeech = indexOfColon+1; |
This file contains 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
Attribute VB_Name = "ChangeTextToRefs" | |
Dim picDic | |
Private Sub FindByRegexAndReplace(textToFind As String) | |
Attribute FindByRegexAndReplace.VB_ProcData.VB_Invoke_Func = "Normal.NewMacros.FindAndReplacePicRef" | |
Dim doc As Document | |
Dim range As range | |
Dim picNumber As String | |