Skip to content

Commit

Permalink
LUWRAIN API update
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Pozhidaev committed May 8, 2019
1 parent b13e69e commit b656370
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/org/luwrain/app/studio/CodePronunciation.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,20 @@ void announceLine(String line)
final String indent = (indentLen > 0)?strings.codeIndent("" + indentLen):"";
if (line.trim().startsWith("//"))
{
luwrain.say(indent + " " + strings.codeComments() + " " + line.trim().substring(2));
luwrain.speak(indent + " " + strings.codeComments() + " " + line.trim().substring(2));
return;
}
if (line.trim().equals("{"))
{
luwrain.say(indent + " " + strings.codeBlockBegin());
luwrain.speak(indent + " " + strings.codeBlockBegin());
return;
}
if (line.trim().equals("}"))
{
luwrain.say(indent + " " + strings.codeBlockEnd());
luwrain.speak(indent + " " + strings.codeBlockEnd());
return;
}
luwrain.say(indent + " " + luwrain.getSpokenText(line.trim(), Luwrain.SpokenTextType.PROGRAMMING));
luwrain.speak(indent + " " + luwrain.getSpokenText(line.trim(), Luwrain.SpokenTextType.PROGRAMMING));
}

private int getIndent(String line)
Expand Down

0 comments on commit b656370

Please sign in to comment.