Since this style is quite long, could we have in the style sheet define:

```css
.legacy_ruby {
  display: inline-block;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  vertical-align: baseline;
  margin: 0;
  padding: 0;
}
.legacy_ruby > span {
  display: block;
  text-decoration: none;
  line-height: 1.2;
  font-weight: normal;
  font-size: 0.64em;
}
```

and then use:

```java
  private static final String RUBY = AnkiDroidApp.SDK_VERSION >= 11 ? "<ruby><rb>$1</rb><rt>$2</rt></ruby>" : "<span class='legacy_ruby'><span>$2</span>$1</span>";
```

Just a suggestion, let me know what you think!