Autocapitalise the sentences

how to autocapitalise in anki.. ?? any ideas? add ons??

There is a link for autocapitalise in forum but its going to autohotkey.. I dont have that much computer skills.. kindly help..

What do you want to capitalize?

  • The first letter of a paragraph?
  • The first letter of a sentence?
  • The first letter of each word?
  • Every letter of every word?
  • …

You could probably do that using basic javascript in your card templates.

Edit: you actually answered that in your title. Sorry about that. But in this case: Do you want to capitalize every sentense on your card or just the first one?

every 1st letter of a sentence..pls.

The simplest option is to just type the characters correctly. Anki isn’t a word-processing program, so you shouldn’t expect it to auto-correct your typing for you.

Select the text and use the shortcut Ctrl+Shift+L.

https://ankiweb.net/shared/info/2045403514

You could use javascript in your card template. E.g. like this:

<div id=front>{{Front}}</div>

<script>
	var front = document.getElementById("front");
	front.innerHTML = front.innerHTML.replace(/(^|[.!?]\s)(\w)/g, function(first_letter) {
		return first_letter.toUpperCase();
	});
</script>

It transforms

this is a sentence. yet another sentence here. and one more for good measure.

into

This is a sentence. Yet another sentence here. And one more for good measure.

To understand the regex, I suggest you go to https://regexr.com/ and paste /(^|[.!?]\s)(\w)/g.

thank u :smiley: