int get_auto_dir()
Gets whether to calculate the bidirectional base direction for the layout according to the contents of the layout.